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  at‐
28       tributes(7).
29
30       ┌────────────────────────────────────────────┬───────────────┬─────────┐
31Interface                                   Attribute     Value   
32       ├────────────────────────────────────────────┼───────────────┼─────────┤
33wcscmp()                                    │ Thread safety │ MT-Safe │
34       └────────────────────────────────────────────┴───────────────┴─────────┘
35

CONFORMING TO

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

SEE ALSO

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

COLOPHON

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