Compares byte strings.
#include <strings.h> void bcmp (const void *string1, const void *string2, size_t length);
Unlike the string functions, there is no checking for null bytes. Zero-length strings are always identical.
Note that bcmp is equivalent to memcmp, which is defined by the ANSI C Standard. Therefore, using memcmp is recommended for portable programs.
0 | The strings are identical. |
Nonzero | The strings are not identical. |