]>
Commit | Line | Data |
---|---|---|
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 |
14 | wcscmp \- compare two wide-character strings | |
563a223a AC |
15 | .SH LIBRARY |
16 | Standard C library | |
8fc3b2cf | 17 | .RI ( libc ", " \-lc ) |
fea681da MK |
18 | .SH SYNOPSIS |
19 | .nf | |
20 | .B #include <wchar.h> | |
68e4db0a | 21 | .PP |
fea681da MK |
22 | .BI "int wcscmp(const wchar_t *" s1 ", const wchar_t *" s2 ); |
23 | .fi | |
24 | .SH DESCRIPTION | |
60a90ecd MK |
25 | The |
26 | .BR wcscmp () | |
27 | function is the wide-character equivalent | |
28 | of the | |
29 | .BR strcmp (3) | |
30 | function. | |
35cfd378 MK |
31 | It compares the wide-character string pointed to by |
32 | .I s1 | |
33 | and the | |
34 | wide-character string pointed to by | |
35 | .IR s2 . | |
47297adb | 36 | .SH RETURN VALUE |
60a90ecd MK |
37 | The |
38 | .BR wcscmp () | |
39 | function returns zero if the wide-character strings at | |
35cfd378 MK |
40 | .I s1 |
41 | and | |
42 | .I s2 | |
43 | are equal. | |
c13182ef | 44 | It returns an integer greater than zero if |
35cfd378 MK |
45 | at the first differing position |
46 | .IR i , | |
47 | the corresponding wide-character | |
48 | .I s1[i] | |
49 | is greater than | |
50 | .IR s2[i] . | |
c13182ef | 51 | It returns an integer less than zero if |
35cfd378 MK |
52 | at the first differing position |
53 | .IR i , | |
54 | the corresponding wide-character | |
55 | .I s1[i] | |
56 | is less than | |
57 | .IR s2[i] . | |
0c54d3bb | 58 | .SH ATTRIBUTES |
2043e671 PH |
59 | For an explanation of the terms used in this section, see |
60 | .BR attributes (7). | |
61 | .TS | |
62 | allbox; | |
c466875e | 63 | lbx lb lb |
2043e671 PH |
64 | l l l. |
65 | Interface Attribute Value | |
66 | T{ | |
9e54434e BR |
67 | .na |
68 | .nh | |
0c54d3bb | 69 | .BR wcscmp () |
2043e671 PH |
70 | T} Thread safety MT-Safe |
71 | .TE | |
c466875e | 72 | .sp 1 |
3113c7f3 | 73 | .SH STANDARDS |
4131356c AC |
74 | C11, POSIX.1-2008. |
75 | .SH HISTORY | |
76 | POSIX.1-2001, C99. | |
47297adb | 77 | .SH SEE ALSO |
fea681da MK |
78 | .BR strcmp (3), |
79 | .BR wcscasecmp (3), | |
80 | .BR wmemcmp (3) |