The
bcmp ();
function
compares byte string
Fa b1
against byte string
Fa b2 ,
returning zero if they are identical, non-zero otherwise.
Both strings are assumed to be
Fa len
bytes long.
Zero-length strings are always identical.
A
bcmp ();
function first appeared in
BSD 4.2
Its prototype existed previously in
#include <string.h>
before it was moved to
#include <strings.h>
for
St -p1003.1-2001
compliance.