Index of Section 3 Manual Pages
| Interix / SUA | wcscmp.3 | Interix / SUA |
wcscmp(3) wcscmp(3)
wcscmp()
NAME
wcscmp(), wcsncmp() - compare wide-character strings
SYNOPSIS
#include
int wcscmp (const wchar_t *ws1, const wchar_t *ws2)
int wcsncmp (const wchar_t *ws1, const wchar_t *ws2, size_t len)
DESCRIPTION
The wcscmp(3) and wcsncmp(3) functions lexicographically compare the wide-
character strings ws1 and ws2.
RETURN VALUES
The wcscmp(3) and wcsncmp(3) return an integer greater than, equal to, or
less than 0, according as the string ws1 is greater than, equal to, or
less than the string ws2. The comparison is done using unsigned wide-
character codes, so that \200 is greater than \0.
Unlike wcscmp(3), wcsncmp(3) compares not more than len characters.
SEE ALSO
memcmp(3)
wcscoll(3)
wcsxfrm(3)
USAGE NOTES
All of these functions are thread safe.
None of these functions are async-signal safe.