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

NAME

6       wcscasecmp - compare two wide-character strings, ignoring case
7

SYNOPSIS

9       #include <wchar.h>
10
11       int wcscasecmp(const wchar_t *s1, const wchar_t *s2);
12
13   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
14
15       wcscasecmp():
16           Since glibc 2.10:
17               _POSIX_C_SOURCE >= 200809L
18           Before glibc 2.10:
19               _GNU_SOURCE
20

DESCRIPTION

22       The  wcscasecmp() function is the wide-character equivalent of the str‐
23       casecmp(3) function.  It compares the wide-character string pointed  to
24       by  s1  and  the  wide-character string pointed to by s2, ignoring case
25       differences (towupper(3), towlower(3)).
26

RETURN VALUE

28       The wcscasecmp() function returns zero if the wide-character strings at
29       s1  and  s2 are equal except for case distinctions.  It returns a posi‐
30       tive integer if s1 is greater than s2, ignoring  case.   It  returns  a
31       negative integer if s1 is smaller than s2, ignoring case.
32

VERSIONS

34       The wcscasecmp() function is provided in glibc since version 2.1.
35

ATTRIBUTES

37       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
38       tributes(7).
39
40       ┌─────────────────────────────────────┬───────────────┬────────────────┐
41Interface                            Attribute     Value          
42       ├─────────────────────────────────────┼───────────────┼────────────────┤
43wcscasecmp()                         │ Thread safety │ MT-Safe locale │
44       └─────────────────────────────────────┴───────────────┴────────────────┘
45

CONFORMING TO

47       POSIX.1-2008.  This function is not specified in POSIX.1-2001,  and  is
48       not widely available on other systems.
49

NOTES

51       The  behavior  of  wcscasecmp() depends on the LC_CTYPE category of the
52       current locale.
53

SEE ALSO

55       strcasecmp(3), wcscmp(3)
56

COLOPHON

58       This page is part of release 5.13 of the Linux  man-pages  project.   A
59       description  of  the project, information about reporting bugs, and the
60       latest    version    of    this    page,    can     be     found     at
61       https://www.kernel.org/doc/man-pages/.
62
63
64
65GNU                               2021-03-22                     WCSCASECMP(3)
Impressum