]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/wcscasecmp.3
epoll_create.2, epoll_ctl.2, epoll_wait.2, eventfd.2, ioprio_set.2, signalfd.2, spu_c...
[thirdparty/man-pages.git] / man3 / wcscasecmp.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
3.\" This is free documentation; you can redistribute it and/or
4.\" modify it under the terms of the GNU General Public License as
5.\" published by the Free Software Foundation; either version 2 of
6.\" the License, or (at your option) any later version.
7.\"
8.\" References consulted:
9.\" GNU glibc-2 source code and manual
10.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 11.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da 12.\"
df362fbf 13.TH WCSCASECMP 3 2010-09-15 "GNU" "Linux Programmer's Manual"
fea681da
MK
14.SH NAME
15wcscasecmp \- compare two wide-character strings, ignoring case
16.SH SYNOPSIS
17.nf
18.B #include <wchar.h>
19.sp
20.BI "int wcscasecmp(const wchar_t *" s1 ", const wchar_t *" s2 );
21.fi
df362fbf
MK
22.sp
23.in -4n
24Feature Test Macro Requirements for glibc (see
25.BR feature_test_macros (7)):
26.in
27.sp
28.BR wcscasecmp ():
ea91c3fd
MK
29.PD 0
30.ad l
31.RS 4
32.TP 4
33Since glibc 2.10:
34_XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
35.TP
df362fbf
MK
36Before glibc 2.10:
37_GNU_SOURCE
ea91c3fd
MK
38.RE
39.ad
40.PD
fea681da 41.SH DESCRIPTION
60a90ecd
MK
42The
43.BR wcscasecmp ()
44function is the wide-character equivalent of the
45.BR strcasecmp (3)
46function.
c13182ef 47It compares the wide-character string pointed to
fea681da 48by \fIs1\fP and the wide-character string pointed to by \fIs2\fP, ignoring
60a90ecd
MK
49case differences
50.RB ( towupper (3),
51.BR towlower (3)).
47297adb 52.SH RETURN VALUE
60a90ecd
MK
53The
54.BR wcscasecmp ()
55function returns zero if the wide-character strings at
c13182ef
MK
56\fIs1\fP and \fIs2\fP are equal except for case distinctions.
57It returns a
58positive integer if \fIs1\fP is greater than \fIs2\fP, ignoring case.
59It
60returns a negative integer if \fIs1\fP is smaller
61than \fIs2\fP, ignoring case.
51d42330
MK
62.SH VERSIONS
63The
64.BR wcscasecmp ()
65function is provided in glibc since version 2.1.
47297adb 66.SH CONFORMING TO
21696186
MK
67POSIX.1-2008.
68This function is not specified in POSIX.1-2001,
69and is not widely available on other systems.
fea681da 70.SH NOTES
d9bfdb9c 71The behavior of
60a90ecd 72.BR wcscasecmp ()
1274071a
MK
73depends on the
74.B LC_CTYPE
75category of the
fea681da 76current locale.
47297adb 77.SH SEE ALSO
e37e3282
MK
78.BR strcasecmp (3),
79.BR wcscmp (3)