]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/wcscmp.3
Many pages: Use correct letter case in page titles (TH)
[thirdparty/man-pages.git] / man3 / wcscmp.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
e4a74ca8 3.\" SPDX-License-Identifier: GPL-2.0-or-later
fea681da
MK
4.\"
5.\" References consulted:
6.\" GNU glibc-2 source code and manual
7.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 8.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
9.\" ISO/IEC 9899:1999
10.\"
4c1c5274 11.TH wcscmp 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
12.SH NAME
13wcscmp \- compare two wide-character strings
563a223a
AC
14.SH LIBRARY
15Standard C library
8fc3b2cf 16.RI ( libc ", " \-lc )
fea681da
MK
17.SH SYNOPSIS
18.nf
19.B #include <wchar.h>
68e4db0a 20.PP
fea681da
MK
21.BI "int wcscmp(const wchar_t *" s1 ", const wchar_t *" s2 );
22.fi
23.SH DESCRIPTION
60a90ecd
MK
24The
25.BR wcscmp ()
26function is the wide-character equivalent
27of the
28.BR strcmp (3)
29function.
35cfd378
MK
30It compares the wide-character string pointed to by
31.I s1
32and the
33wide-character string pointed to by
34.IR s2 .
47297adb 35.SH RETURN VALUE
60a90ecd
MK
36The
37.BR wcscmp ()
38function returns zero if the wide-character strings at
35cfd378
MK
39.I s1
40and
41.I s2
42are equal.
c13182ef 43It returns an integer greater than zero if
35cfd378
MK
44at the first differing position
45.IR i ,
46the corresponding wide-character
47.I s1[i]
48is greater than
49.IR s2[i] .
c13182ef 50It returns an integer less than zero if
35cfd378
MK
51at the first differing position
52.IR i ,
53the corresponding wide-character
54.I s1[i]
55is less than
56.IR s2[i] .
0c54d3bb 57.SH ATTRIBUTES
2043e671
PH
58For an explanation of the terms used in this section, see
59.BR attributes (7).
c466875e
MK
60.ad l
61.nh
2043e671
PH
62.TS
63allbox;
c466875e 64lbx lb lb
2043e671
PH
65l l l.
66Interface Attribute Value
67T{
0c54d3bb 68.BR wcscmp ()
2043e671
PH
69T} Thread safety MT-Safe
70.TE
c466875e
MK
71.hy
72.ad
73.sp 1
3113c7f3 74.SH STANDARDS
eea7ea7a 75POSIX.1-2001, POSIX.1-2008, C99.
47297adb 76.SH SEE ALSO
fea681da
MK
77.BR strcmp (3),
78.BR wcscasecmp (3),
79.BR wmemcmp (3)