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

 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() is preferred over this function.

 FUTURE DIRECTIONS

None.

 SEE ALSO

memcmp(), <strings.h>.

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