BCMP(3) Library Functions Manual BCMP(3)
NAME
bcmp — memory
operations
SYNOPSIS
#include <strings.h> int bcmp(const void *s1, const void *s2, size_t n);
DESCRIPTION
The bcmp() function compares the first n bytes of the area pointed to by s1 with the area pointed to by s2 .
RETURN VALUE
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.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
For portability to implementations conforming to earlier versions of this specification, memcmp(3) is preferred over this function.
FUTURE DIRECTIONS
None.
SEE ALSO
memcmp(3) , <strings.h> .
February 1997 posix.fail