The bcopy(), bcmp(), and bzero() functions operate on variable length strings of bytes. They do not check for null bytes as do the functions described on the string(3C) manual page.
The bcopy() function copies n bytes from string s1 to the string s2. Overlapping strings are handled correctly.
The bcmp() function compares byte string s1 against byte string s2, returning 0 if they are identical, 1 otherwise. Both strings are assumed to be n bytes long. The bcmp() function always returns 0 when n is 0.
The bzero() function places n null bytes in the string s.
|