bstring(3B)
NAME
bstring, bcopy, bcmp, bzero − bit and byte string operations
SYNOPSIS
/usr/ucb/cc [ flag ... ] file ...
char ∗bcopy(const char ∗src, char ∗dest, int length);
int bcmp(const char ∗src, const char ∗dest, int length);
char ∗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(3C) do.
bcopy() copies length bytes from string src to the string dest. Overlapping strings are handled correctly.
bcmp() compares byte string src against byte string dest, 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.
WARNINGS
The bcmp() and bcopy() routines take parameters backwards from strcmp() and strcpy().
SEE ALSO
SunOS 5.1/SPARC — Last change: 6 Jun 1991