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       └─────────────┴───────────────┴────────────────┘

CONFORMING TO

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

NOTES

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

SEE ALSO

54       strcasecmp(3), wcscmp(3)
55

COLOPHON

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