bcmp - General: Compares two byte strings
int bcmp(
char *b1,
char *b2,
int n );
Specifies a pointer to a byte string (array of characters).
Specifies a pointer to a byte string (array of
characters). Specifies the number of bytes to be compared.
The bcmp routine compares byte string b1 to byte string
b2. The routine compares exactly n bytes. No check is made
for null bytes.
If the first n bytes of b1 and b2 are equal, the bcmp routine
returns the value 0 (zero). Otherwise, it returns a
nonzero integer.
Routines: strcmp(9r)
bcmp(9r)
[ Back ] |