bstring(3BSD) (BSD System Compatibility) bstring(3BSD)
NAME
bstring: bcopy, bcmp, bzero - (BSD) bit and byte string
operations
SYNOPSIS
/usr/ucb/cc [flag . . . ] file . . .
void bcopy(const char *b1, const char *b2, int length);
int bcmp(const char *b1, const char *b2, int length);
void bzero(char *b, int length);
DESCRIPTION
The functions bcopy, bcmp, and bzero operate on variable
length strings of bytes. They do not check for null bytes as
the routines in string(3BSD) and string(3C) do.
bcopy copies length bytes from string b1 to the string b2.
Overlapping strings are handled correctly.
bcmp compares byte string b1 against byte string b2, returning
zero if they are identical, 1 otherwise. Both strings are
assumed to be length bytes long. bcmp of length zero bytes
always returns zero.
bzero places length 0 bytes in the string b.
REFERENCES
string(3BSD), string(3C)
NOTICES
The bcmp and bcopy routines take parameters backwards from
strcmp and strcpy.
Copyright 1994 Novell, Inc. Page 1