Everything

wmemcmp


Compares the contents of two storage areas specified.

[Format]

#include <wchar.h>

long wmemcmp(const wchar_t * s1, const wchar_t * s2, size_t n);

[Parameters]

s1 Pointer to the reference storage area to be compared

s2 Pointer to the storage area to compare to the reference

n Number of characters to compare

[Return values]

If storage area pointed by s1 > storage area pointed by s2: Positive value

If storage area pointed by s1 == storage area pointed by s2: 0

If storage area pointed by s1 < storage area pointed by s2: Negative value

[Remarks]

The wmemcmp function is the wide-character version of the memcmp function.