bcmp(), bcopy(), and bzero() execute binary string operations. They operate on variable length strings of bytes but do not check for null bytes as the routines in string do.
bcmp()
compares the first length bytes
of strings b1
and b2
, returning 0 if they are identical, non-zero otherwise. Both strings are assumed to be at least length
bytes long.
bcopy()
copies the first length
bytes from string b1
to string b2
. bcopy()
always returns 0 (zero).
bzero()
places 0s in the first length
bytes of string b
. Note:bcopy()
takes its twochar*
parameters in the reverse order fromstrcpy()
andmemcpy()
.
int bcmp( char* b1, char* b2, int length ); int bcopy( char* b1, char* b2, unsigned int length ); void bzero( char* b, int length );
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | strings.h | sys/types.h strings.h |
netiff3m.lib |