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