]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man/man3/wmemcmp.3
man/, share/mk/: Move man*/ to man/
[thirdparty/man-pages.git] / man / man3 / wmemcmp.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 10.\"
4c1c5274 11.TH wmemcmp 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
12.SH NAME
13wmemcmp \- compare two arrays of wide-characters
1e6d56fe
AC
14.SH LIBRARY
15Standard C library
8fc3b2cf 16.RI ( libc ", " \-lc )
fea681da
MK
17.SH SYNOPSIS
18.nf
19.B #include <wchar.h>
c6d039a3 20.P
1eed67e7
AC
21.BI "int wmemcmp(const wchar_t " s1 [. n "], const wchar_t " s2 [. n "], \
22size_t " n );
fea681da
MK
23.fi
24.SH DESCRIPTION
60a90ecd
MK
25The
26.BR wmemcmp ()
27function is the wide-character equivalent of the
28.BR memcmp (3)
29function.
35cfd378 30It compares the
1ae6b2c7 31.I n
35cfd378
MK
32wide-characters starting at
33.I s1
34and the
35.I n
36wide-characters starting at
37.IR s2 .
47297adb 38.SH RETURN VALUE
60a90ecd
MK
39The
40.BR wmemcmp ()
41function returns
c13182ef 42zero if the wide-character arrays of size
35cfd378
MK
43.I n
44at
1ae6b2c7 45.I s1
35cfd378
MK
46and
47.I s2
48are equal.
c13182ef 49It returns an integer greater than
35cfd378
MK
50zero if at the first differing position
51.I i
52.RI ( i " <"
53.IR n ),
54the
55corresponding wide-character
56.I s1[i]
57is greater than
58.IR s2[i] .
c13182ef 59It returns an integer less than zero if
35cfd378
MK
60at the first differing position
61.I i
287bfbdb
MK
62.RI ( i
63<
35cfd378
MK
64.IR n ),
65the corresponding
287bfbdb
MK
66wide-character
67.I s1[i]
68is less than
69.IR s2[i] .
500d891e 70.SH ATTRIBUTES
2aba859b
PH
71For an explanation of the terms used in this section, see
72.BR attributes (7).
73.TS
74allbox;
c466875e 75lbx lb lb
2aba859b
PH
76l l l.
77Interface Attribute Value
78T{
9e54434e
BR
79.na
80.nh
500d891e 81.BR wmemcmp ()
2aba859b
PH
82T} Thread safety MT-Safe
83.TE
3113c7f3 84.SH STANDARDS
4131356c
AC
85C11, POSIX.1-2008.
86.SH HISTORY
87POSIX.1-2001, C99.
47297adb 88.SH SEE ALSO
fea681da
MK
89.BR memcmp (3),
90.BR wcscmp (3)