INtime SDK Help
memcmp, wmemcmp

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);

Parameters

buf1
First buffer.
buf2
Second buffer.
count
Number of characters. (Compares bytes for memcmp, wide characters for wmemcmp).

Return Values

<0 buf1 is less than buf2.
=0 buf1 is identical to buf2
>0 buf1 is greater than buf2

Requirements

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
   
See Also