BCMP(3) Library Functions Manual BCMP(3)

bcmpmemory operations

#include <strings.h>

int bcmp(const void *s1, const void *s2, size_t n);

The bcmp() function compares the first n bytes of the area pointed to by s1 with the area pointed to by s2 .

The bcmp() function returns 0 if s1 and s2 are identical, non-zero otherwise. Both areas are assumed to be n bytes long. If the value of n is 0, bcmp() returns 0.

No errors are defined.

None.

For portability to implementations conforming to earlier versions of this specification, memcmp(3) is preferred over this function.

None.

memcmp(3) , <strings.h> .

February 1997 posix.fail