1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
14 .TH WCSCMP 3 1999-07-25 "GNU" "Linux Programmer's Manual"
16 wcscmp \- compare two wide-character strings
21 .BI "int wcscmp(const wchar_t *" s1 ", const wchar_t *" s2 );
24 The \fBwcscmp\fP() function is the wide-character equivalent
25 of the \fBstrcmp\fP(3) function.
26 It compares the wide-character string pointed to by \fIs1\fP and the
27 wide-character string pointed to by \fIs2\fP.
29 The \fBwcscmp\fP() function returns zero if the wide-character strings at
30 \fIs1\fP and \fIs2\fP are equal.
31 It returns an integer greater than zero if
32 at the first differing position \fIi\fP, the corresponding wide-character
33 \fIs1[i]\fP is greater than \fIs2[i]\fP.
34 It returns an integer less than zero if
35 at the first differing position \fIi\fP, the corresponding wide-character
36 \fIs1[i]\fP is less than \fIs2[i]\fP.