Compares the specified number of bytes of two buffers and returns a value indicating their relationship.
#include <string.h> int memcmp (const void *buf1, const void *buf2, size_t count);
#include <wchar.h>
int wmemcmp(const wchar_t * mem1, const wchar_t * mem2, size_t num);
buf1
buf2
count
<0 | buf1 is less than buf2 . |
=0 | buf1 is identical to buf2 |
>0 | buf1 is greater than buf2 |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 INtime 6.0 (for wide-character versions) |
intime/rt/include/string.h intime/rt/wchar.h |
string.h wchar.h |
clib.lib |