|MEMCMP(3)||Library Functions Manual||MEMCMP(3)|
void *b1, const void
memcmp() function compares byte string b1 against byte string b2. Both strings are assumed to be len bytes long.
memcmp() function returns zero if the two strings are identical, otherwise returns the difference between the first two differing bytes (treated as
unsigned charvalues, so that ‘
\200’ is greater than ‘
\0’, for example). Zero-length strings are always identical.
memcmp() function conforms to ANSI X3.159-1989 (“ANSI C89”).
memcmp() function first appeared in AT&T System V UNIX and was reimplemented for 4.3BSD-Tahoe.
|June 13, 2014||OpenBSD-current|