OSDN Git Service

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