]>
Commit | Line | Data |
---|---|---|
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/ | |
11 | .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html | |
12 | .\" | |
13 | .TH WCSCASECMP 3 1999-07-25 "GNU" "Linux Programmer's Manual" | |
14 | .SH NAME | |
15 | wcscasecmp \- 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 | |
22 | .SH DESCRIPTION | |
e511ffb6 | 23 | The \fBwcscasecmp\fP() function is the wide-character equivalent of the |
fea681da MK |
24 | \fBstrcasecmp\fP function. It compares the wide-character string pointed to |
25 | by \fIs1\fP and the wide-character string pointed to by \fIs2\fP, ignoring | |
26 | case differences (\fBtowupper\fP, \fBtowlower\fP). | |
27 | .SH "RETURN VALUE" | |
e511ffb6 | 28 | The \fBwcscasecmp\fP() function returns zero if the wide-character strings at |
fea681da MK |
29 | \fIs1\fP and \fIs2\fP are equal except for case distinctions. It returns a |
30 | positive integer if \fIs1\fP is greater than \fIs2\fP, ignoring case. It | |
31 | returns a negative integer if \fIs1\fP is smaller than \fIs2\fP, ignoring case. | |
32 | .SH "CONFORMING TO" | |
33 | This function is a GNU extension. | |
34 | .SH "SEE ALSO" | |
35 | .BR strcasecmp (3), | |
36 | .BR wcscmp (3) | |
37 | .SH NOTES | |
e511ffb6 | 38 | The behaviour of \fBwcscasecmp\fP() depends on the LC_CTYPE category of the |
fea681da | 39 | current locale. |