1WCSCMP(3)                  Linux Programmer's Manual                 WCSCMP(3)
2
3
4

NAME

6       wcscmp - compare two wide-character strings
7

SYNOPSIS

9       #include <wchar.h>
10
11       int wcscmp(const wchar_t *s1, const wchar_t *s2);
12

DESCRIPTION

14       The wcscmp() function is the wide-character equivalent of the strcmp(3)
15       function.  It compares the wide-character string pointed to by  s1  and
16       the wide-character string pointed to by s2.
17

RETURN VALUE

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

ATTRIBUTES

27       For  an  explanation  of  the  terms  used   in   this   section,   see
28       attributes(7).
29
30       ┌──────────┬───────────────┬─────────┐
31Interface Attribute     Value   
32       ├──────────┼───────────────┼─────────┤
33wcscmp()  │ Thread safety │ MT-Safe │
34       └──────────┴───────────────┴─────────┘

CONFORMING TO

36       POSIX.1-2001, POSIX.1-2008, C99.
37

SEE ALSO

39       strcmp(3), wcscasecmp(3), wmemcmp(3)
40

COLOPHON

42       This  page  is  part of release 4.15 of the Linux man-pages project.  A
43       description of the project, information about reporting bugs,  and  the
44       latest     version     of     this    page,    can    be    found    at
45       https://www.kernel.org/doc/man-pages/.
46
47
48
49GNU                               2015-08-08                         WCSCMP(3)
Impressum