]>
Commit | Line | Data |
---|---|---|
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 |
13 | wcscmp \- compare two wide-character strings | |
563a223a AC |
14 | .SH LIBRARY |
15 | Standard 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 |
24 | The |
25 | .BR wcscmp () | |
26 | function is the wide-character equivalent | |
27 | of the | |
28 | .BR strcmp (3) | |
29 | function. | |
35cfd378 MK |
30 | It compares the wide-character string pointed to by |
31 | .I s1 | |
32 | and the | |
33 | wide-character string pointed to by | |
34 | .IR s2 . | |
47297adb | 35 | .SH RETURN VALUE |
60a90ecd MK |
36 | The |
37 | .BR wcscmp () | |
38 | function returns zero if the wide-character strings at | |
35cfd378 MK |
39 | .I s1 |
40 | and | |
41 | .I s2 | |
42 | are equal. | |
c13182ef | 43 | It returns an integer greater than zero if |
35cfd378 MK |
44 | at the first differing position |
45 | .IR i , | |
46 | the corresponding wide-character | |
47 | .I s1[i] | |
48 | is greater than | |
49 | .IR s2[i] . | |
c13182ef | 50 | It returns an integer less than zero if |
35cfd378 MK |
51 | at the first differing position |
52 | .IR i , | |
53 | the corresponding wide-character | |
54 | .I s1[i] | |
55 | is less than | |
56 | .IR s2[i] . | |
0c54d3bb | 57 | .SH ATTRIBUTES |
2043e671 PH |
58 | For 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 |
63 | allbox; | |
c466875e | 64 | lbx lb lb |
2043e671 PH |
65 | l l l. |
66 | Interface Attribute Value | |
67 | T{ | |
0c54d3bb | 68 | .BR wcscmp () |
2043e671 PH |
69 | T} Thread safety MT-Safe |
70 | .TE | |
c466875e MK |
71 | .hy |
72 | .ad | |
73 | .sp 1 | |
3113c7f3 | 74 | .SH STANDARDS |
eea7ea7a | 75 | POSIX.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) |