OSDN Git Service

aa20b0e88555eb6f7d1b096d861b8d80117492de
[linuxjm/LDP_man-pages.git] / draft / man3 / wcscmp.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
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.
7 .\"
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
12 .\"   ISO/IEC 9899:1999
13 .\"
14 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
15 .\" Translated Sun Oct 17 22:09:35 JST 1999
16 .\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
17 .\"
18 .TH WCSCMP 3 1999-07-25 "GNU" "Linux Programmer's Manual"
19 .\"O .SH NAME
20 .SH Ì¾Á°
21 .\"O wcscmp \- compare two wide-character strings
22 wcscmp \- 2 ¤Ä¤Î¥ï¥¤¥Éʸ»úʸ»úÎó¤òÈæ³Ó¤¹¤ë
23 .\"O .SH SYNOPSIS
24 .SH ½ñ¼°
25 .nf
26 .B #include <wchar.h>
27 .sp
28 .BI "int wcscmp(const wchar_t *" s1 ", const wchar_t *" s2 );
29 .fi
30 .\"O .SH DESCRIPTION
31 .SH ÀâÌÀ
32 .\"O The
33 .\"O .BR wcscmp ()
34 .\"O function is the wide-character equivalent
35 .\"O of the
36 .\"O .BR strcmp (3)
37 .\"O function.
38 .\"O It compares the wide-character string pointed to by \fIs1\fP and the
39 .\"O wide-character string pointed to by \fIs2\fP.
40 .BR wcscmp ()
41 ´Ø¿ô¤Ï¡¢
42 .BR strcmp (3)
43 ´Ø¿ô¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£
44 ¤³¤Î´Ø¿ô¤Ï¡¢\fIs1\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎó¤È
45 \fIs2\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎó¤òÈæ³Ó¤¹¤ë¡£
46 .\"O .SH "RETURN VALUE"
47 .SH ÊÖ¤êÃÍ
48 .\"O The
49 .\"O .BR wcscmp ()
50 .\"O function returns zero if the wide-character strings at
51 .\"O \fIs1\fP and \fIs2\fP are equal.
52 .\"O It returns an integer greater than zero if
53 .\"O at the first differing position \fIi\fP, the corresponding wide-character
54 .\"O \fIs1[i]\fP is greater than \fIs2[i]\fP.
55 .\"O It returns an integer less than zero if
56 .\"O at the first differing position \fIi\fP, the corresponding wide-character
57 .\"O \fIs1[i]\fP is less than \fIs2[i]\fP.
58 .BR wcscmp ()
59 ´Ø¿ô¤Ï¡¢\fIs1\fP ¤È \fIs2\fP ¤¬¤½¤ì¤¾¤ì»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎó
60 ¤¬Æ±¤¸¤Ç¤¢¤ì¤Ð 0 ¤òÊÖ¤¹¡£°Û¤Ê¤ëʸ»ú¤¬ºÇ½é¤Ë¸½¤ï¤ì¤¿°ÌÃ֤ˤª¤¤¤Æ¡¢¤½¤Î°Ì
61 Ã֤ˤ¢¤ë¥ï¥¤¥Éʸ»ú \fIs1[i]\fP ¤¬ \fIs2[i]\fP ¤è¤êÂ礭¤±¤ì¤ÐÀµ¤ÎÃͤòÊÖ¤¹¡£
62 °Û¤Ê¤ëʸ»ú¤¬ºÇ½é¤Ë¸½¤ï¤ì¤¿°ÌÃ֤ˤª¤¤¤Æ¡¢¤½¤Î°ÌÃ֤ˤ¢¤ë¥ï¥¤¥Éʸ»ú \fIs1[i]\fP
63 ¤¬ \fIs2[i]\fP ¤è¤ê¾®¤µ¤±¤ì¤ÐÉé¤ÎÃͤòÊÖ¤¹¡£
64 .\"O .SH "CONFORMING TO"
65 .SH ½àµò
66 C99.
67 .\"O .SH "SEE ALSO"
68 .SH ´ØÏ¢¹àÌÜ
69 .BR strcmp (3),
70 .BR wcscasecmp (3),
71 .BR wmemcmp (3)