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
13 .TH WMEMCMP 3 1999-07-25 "GNU" "Linux Programmer's Manual"
15 wmemcmp \- compare two arrays of wide-characters
20 .BI "int wmemcmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " n );
23 The \fBwmemcmp\fP() function is the wide-character equivalent of the
24 \fBmemcmp\fP() function.
25 It compares the \fIn\fP wide-characters starting at \fIs1\fP and the
26 \fIn\fP wide-characters starting at \fIs2\fP.
28 The \fBwmemcmp\fP() function returns
29 zero if the wide-character arrays of size
30 \fIn\fP at \fIs1\fP and \fIs2\fP are equal.
31 It returns an integer greater than
32 zero if at the first differing position \fIi\fP (\fIi\fP < \fIn\fP), the
33 corresponding wide-character \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
36 (\fIi\fP < \fIn\fP), the corresponding
37 wide-character \fIs1[i]\fP is less than