bcmp(9r) bcmp(9r)
NAME
bcmp - General: Compares two byte strings
SYNOPSIS
int bcmp(
char *b1,
char *b2,
int n );
ARGUMENTS
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.
DESCRIPTION
The bcmp routine compares byte string b1 to byte string b2. The routine compares exactly n bytes. No check is made for null bytes.
RETURN VALUES
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.
SEE ALSO
Routines: strcmp(9r)
bcmp(9r)