COHERENT manpages

This page displays the COHERENT manpage for bcmp() [Compare two chunks of memory].

List of available manpages
Index


bcmp() -- String Function (libc)

Compare two chunks of memory
int bcmp (source, destination, count)
VOID *source, *destination; size_t count;

Function bcmp()  compares the first  count bytes of data  at address source
with the first  count bytes of data at address  destination. It returns the
offset of the first character  where source and destination differ; if they
do not differ, it returns zero.

See Also

libsocket,
memcmp()

Notes

This function is included  for compatibility with Berkeley socket code.  It
is equivalent  to the standard  C function memcmp(), except  that its first
two arguments are reversed.