|
||
int memcmp( void *s1, void *s2, size_t count )
void *s1; /* address of first memory buffer */ void *s2; /* address of second memory buffer */ size_t count; /* size in bytes of comparison */
|
|
|
Synopsis |
#include "string.h"
The memcmp function compares the count bytes starting at s1 with the count bytes beginning at s2 .
|
|
Parameters |
s1 and s2 are addresses of memory buffers at least count bytes in length.
|
|
Return Value |
If the bytes at s1 are lexicographically less than those at s2 , then memcmp returns a negative number; if the bytes at s1 are lexicographically greater than those at s2 , then memcmp returns a positive number; otherwise they are equal, and memcmp returns 0.
|
|
See Also |
|
|
|
|