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               _XOPEN_SOURCE >= 700 || _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

CONFORMING TO

37       POSIX.1-2008.   This  function is not specified in POSIX.1-2001, and is
38       not widely available on other systems.
39

NOTES

41       The behavior of wcscasecmp() depends on the LC_CTYPE  category  of  the
42       current locale.
43

SEE ALSO

45       strcasecmp(3), wcscmp(3)
46

COLOPHON

48       This  page  is  part of release 3.53 of the Linux man-pages project.  A
49       description of the project, and information about reporting  bugs,  can
50       be found at http://www.kernel.org/doc/man-pages/.
51
52
53
54GNU                               2010-09-15                     WCSCASECMP(3)
Impressum