Reference

bcmp(9)

returns 0 if and only if the buffers have identical contents.

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.

COPYRIGHT