Everything

wcsncmp


Compares two strings specified up to a specified length.

[Format]

#include <wchar.h>

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

[Parameters]

s1 Pointer to the reference string to be compared

s2 Pointer to the string to compare to the reference

n Maximum number of characters to compare

[Return values]

If string pointed by s1 > string pointed by s2: Positive value

If string pointed by s1 == string pointed by s2: 0

If string pointed by s1 < string pointed by s2: Negative value

[Remarks]

The wcsncmp function is the wide-character version of the strncmp function.