bstring.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 87 行
3
87 行
.\" SCCSID: @(#)bstring.3 8.2 1/28/91.TH bstring 3 .SH Namebcopy, bcmp, bzero, ffs \- bit and byte string operations.SH Syntax.nf.B void bcopy(b1, b2, length).B char *b1, *b2;.B int length;.PP.B bcmp(b1, b2, length).B char *b1, *b2;.B int length;.PP.B void bzero(b1, length).B char *b1;.B int length;.PP.B ffs(i).B int i;.fi.SH Description.NXR "bstring keyword".NXR "bcopy subroutine".NXR "bcmp subroutine".NXR "bzero subroutine".NXR "ffs subroutine".NXR "string" "operations on variable-length".NXR "bit" "determining setting in byte".NXA "strcat subroutine" "bcopy subroutine"The functions.PN bcopy ,.PN bcmp ,and.PN bzerooperate on variable length strings of bytes.They do not check for null bytes as the routines in.MS string 3 do..PPThe.PN bcopyfunction copies .I lengthbytes from string.I b1to the string.IR b2 ..PPThe.PN bcmpfunctioncompares byte string.I b1against byte string.IR b2 ,returning zero if they are identical,non-zero otherwise. Both strings areassumed to be.I lengthbytes long..PPThe.PN bzerofunction places.I length0 bytes in the string.IR b1 ..PPThe.I ffsfinds the first bit set in the argument passed it andreturns the index of that bit. Bits are numberedstarting at 1. A return value of 0 indicates thevalue passed is zero..SH RestrictionsThe.PN bcmpand .PN bcopyroutines take parameters backwards from.PN strcmpand.PN strcpy ..SH See Also.MS memory 3
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?