#include <string.h>int memcmp(const void *buf1, const void *buf2, size_t count);
The memcmp( ) function compares the first count characters of the arrays pointed to by buf1 and buf2.
The memcmp( ) function returns an integer that is interpreted as indicated here:
Value |
Meaning |
---|---|
Less than zero |
buf1 is less than buf2 |
Zero |
buf1 is equal to buf2 |
Greater than zero |
buf1 is greater than buf2 |