1WCSCMP(3) Linux Programmer's Manual WCSCMP(3)
2
3
4
6 wcscmp - compare two wide-character strings
7
9 #include <wchar.h>
10
11 int wcscmp(const wchar_t *s1, const wchar_t *s2);
12
14 The wcscmp() function is the wide-character equivalent of the strcmp()
15 function. It compares the wide-character string pointed to by s1 and
16 the wide-character string pointed to by s2.
17
19 The wcscmp() function returns zero if the wide-character strings at s1
20 and s2 are equal. It returns an integer greater than zero if at the
21 first differing position i, the corresponding wide-character s1[i] is
22 greater than s2[i]. It returns an integer less than zero if at the
23 first differing position i, the corresponding wide-character s1[i] is
24 less than s2[i].
25
27 C99.
28
30 strcmp(3), wcscasecmp(3), wmemcmp(3)
31
32
33
34GNU 1999-07-25 WCSCMP(3)