OSDN Git Service

(split) Move Japanese translation histories after original history sections.
[linuxjm/LDP_man-pages.git] / draft / man3 / strcasecmp.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sat Jul 24 18:12:45 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
30 .\"     all rights reserved.
31 .\" Translated Thu Dec 25 10:54:13 JST 1997
32 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
33 .\"
34 .TH STRCASECMP 3  2010-09-20 "" "Linux Programmer's Manual"
35 .\"O .SH NAME
36 .SH Ì¾Á°
37 .\"O strcasecmp, strncasecmp \- compare two strings ignoring case
38 strcasecmp, strncasecmp \- Æó¤Ä¤Îʸ»úÎó¤òÂçʸ»ú¾®Ê¸»ú¤ò¶èÊ̤»¤ºÈæ³Ó¤¹¤ë
39 .\"O .SH SYNOPSIS
40 .SH ½ñ¼°
41 .nf
42 .B #include <strings.h>
43 .sp
44 .BI "int strcasecmp(const char *" s1 ", const char *" s2 );
45 .sp
46 .BI "int strncasecmp(const char *" s1 ", const char *" s2 ", size_t " n );
47 .fi
48 .\"O .SH DESCRIPTION
49 .SH ÀâÌÀ
50 .\"O The
51 .\"O .BR strcasecmp ()
52 .\"O function compares the two strings \fIs1\fP and
53 .\"O \fIs2\fP, ignoring the case of the characters.
54 .\"O It returns an integer
55 .\"O less than, equal to, or greater than zero if \fIs1\fP is found,
56 .\"O respectively, to be less than, to match, or be greater than \fIs2\fP.
57 .BR strcasecmp ()
58 ´Ø¿ô¤Ï¡¢Æó¤Ä¤Îʸ»úÎó¡¡\fIs1\fP ¤È \fIs2\fP ¤ò¡¢
59 Âçʸ»ú¾®Ê¸»ú¤ò¶èÊ̤»¤º¤ËÈæ³Ó¤¹¤ë¡£
60 \fIs1\fP ¤¬ \fIs2\fP ¤è¤ê¤â¾®¤µ¤¤¤«¡¢Æ±¤¸¤«¡¢Â礭¤¤¤«¤Ë¤è¤Ã¤Æ¤½¤ì¤¾¤ì
61 Éé¤ÎÀ°¿ô¡¢0¡¢Àµ¤ÎÀ°¿ô¤òÊÖ¤¹¡£
62 .PP
63 .\"O The
64 .\"O .BR strncasecmp ()
65 .\"O function is similar, except it only compares
66 .\"O the first \fIn\fP characters of \fIs1\fP.
67 .BR strncasecmp ()
68 ´Ø¿ô¤âƱÍͤǤ¢¤ë¤¬¡¢
69 \fIs1\fP ¤ÎºÇ½é¤Î \fIn\fP Ê¸»ú¤À¤±¤òÈæ³Ó¤¹¤ëÅÀ¤À¤±¤¬°Û¤Ê¤ë¡£
70 .\"O .SH "RETURN VALUE"
71 .SH ÊÖ¤êÃÍ
72 .\"O The
73 .\"O .BR strcasecmp ()
74 .\"O and
75 .\"O .BR strncasecmp ()
76 .\"O functions return
77 .\"O an integer less than, equal to, or greater than zero if \fIs1\fP
78 .\"O (or the first \fIn\fP bytes thereof) is found, respectively, to be
79 .\"O less than, to match, or be greater than \fIs2\fP.
80 .BR strcasecmp ()
81 ¤È
82 .BR strncasecmp ()
83 ´Ø¿ô¤Ï¡¢\fIs1\fP
84 (¤Þ¤¿¤Ï¡¢¤½¤ÎºÇ½é¤Î \fIn\fP ¥Ð¥¤¥È)¤¬ \fIs2\fP ¤è¤ê¤â¾®¤µ¤¤¤«¡¢
85 Ʊ¤¸¤«¡¢Â礭¤¤¤«¤Ë¤è¤ê¡¢¤½¤ì¤¾¤ìÉé¤ÎÀ°¿ô¡¢0¡¢Àµ¤ÎÀ°¿ô¤òÊÖ¤¹¡£
86 .\"O .SH "CONFORMING TO"
87 .SH ½àµò
88 4.4BSD, POSIX.1-2001.
89 .\"O .SH "SEE ALSO"
90 .SH ´ØÏ¢¹àÌÜ
91 .BR bcmp (3),
92 .BR memcmp (3),
93 .BR strcmp (3),
94 .BR strcoll (3),
95 .BR string (3),
96 .BR strncmp (3),
97 .BR wcscasecmp (3),
98 .BR wcsncasecmp (3)