Name
bcmp —
returns 0 if and only if the buffers have identical contents.
Synopsis
int bcmp ( | const void * a, |
| const void * b, |
| size_t len) ; |
Arguments
a
pointer to first buffer.
b
pointer to second buffer.
len
size of buffers.
Description
The sign or magnitude of a non-zero return value has no particular
meaning, and architectures may implement their own more efficient bcmp
. So
while this particular implementation is a simple (tail) call to memcmp, do
not rely on anything but whether the return value is zero or non-zero.