1BSTRING(3) Library Functions Manual BSTRING(3)
2
3
4
6 bcopy, bcmp, bzero, ffs - bit and byte string operations
7
9 bcopy(src, dst, length)
10 char *src, *dst;
11 int length;
12
13 bcmp(b1, b2, length)
14 char *b1, *b2;
15 int length;
16
17 bzero(b, length)
18 char *b;
19 int length;
20
21 ffs(i)
22 long i;
23
25 The functions bcopy, bcmp, and bzero operate on variable length strings
26 of bytes. They do not check for null bytes as the routines in
27 string(3) do.
28
29 Bcopy copies length bytes from string src to the string dst.
30
31 Bcmp compares byte string b1 against byte string b2, returning zero if
32 they are identical, non-zero otherwise. Both strings are assumed to be
33 length bytes long.
34
35 Bzero places length 0 bytes in the string b1.
36
37 Ffs find the first bit set in the argument passed it and returns the
38 index of that bit. Bits are numbered starting at 1. A return value of
39 0 indicates the value passed is zero.
40
42 The bcopy routine take parameters backwards from strcpy.
43
44
45
464.2 Berkeley Distribution May 15, 1985 BSTRING(3)