Loading...
Select Version
&pagelevel(4)&pagelevel
Definition | #include <string.h> int memcmp(const void *s1, const void *s2, size_t n);
| |
Return val. | < 0 | In the first n bytes, the contents of s1 are lexically smaller than the contents |
0 | In the first n bytes, the contents of s1 and s2 are of equal lexical size (i.e. | |
> 0 | In the first n bytes, the contents of s1 are lexically larger than the contents | |
Note | This function is suitable for processing character arrays containing the null byte (\0), since | |
See also | memchr, memcpy, memset |