1wcscmp(3)                  Library Functions Manual                  wcscmp(3)
2
3
4

NAME

6       wcscmp - compare two wide-character strings
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <wchar.h>
13
14       int wcscmp(const wchar_t *s1, const wchar_t *s2);
15

DESCRIPTION

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

RETURN VALUE

22       The  wcscmp() function returns zero if the wide-character strings at s1
23       and s2 are equal.  It returns an integer greater than zero  if  at  the
24       first  differing  position i, the corresponding wide-character s1[i] is
25       greater than s2[i].  It returns an integer less than  zero  if  at  the
26       first  differing  position i, the corresponding wide-character s1[i] is
27       less than s2[i].
28

ATTRIBUTES

30       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
31       tributes(7).
32
33       ┌────────────────────────────────────────────┬───────────────┬─────────┐
34Interface                                   Attribute     Value   
35       ├────────────────────────────────────────────┼───────────────┼─────────┤
36wcscmp()                                    │ Thread safety │ MT-Safe │
37       └────────────────────────────────────────────┴───────────────┴─────────┘
38

STANDARDS

40       C11, POSIX.1-2008.
41

HISTORY

43       POSIX.1-2001, C99.
44

SEE ALSO

46       strcmp(3), wcscasecmp(3), wmemcmp(3)
47
48
49
50Linux man-pages 6.04              2023-03-30                         wcscmp(3)
Impressum