The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


bcmp - memory 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.




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




memcmp(), <strings.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]