OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / release / man3 / index.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 Mon Apr 12 12:54:34 1993, David Metcalfe
28 .\" Modified Sat Jul 24 19:13:52 1993, Rik Faith (faith@cs.unc.edu)
29 .\"
30 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
31 .\"     all rights reserved.
32 .\" Translated Fri Dec 12 12:41:35 JST 1997
33 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
34 .\"
35 .TH INDEX 3 2011-09-21 "GNU" "Linux Programmer's Manual"
36 .SH Ì¾Á°
37 index, rindex \- Ê¸»úÎóÃæ¤Îʸ»ú¤Î°ÌÃÖ¤ò¼¨¤¹
38 .SH ½ñ¼°
39 .nf
40 .B #include <strings.h>
41 .sp
42 .BI "char *index(const char *" s ", int " c );
43 .sp
44 .BI "char *rindex(const char *" s ", int " c );
45 .fi
46 .SH ÀâÌÀ
47 .BR index ()
48 ´Ø¿ô¤Ï¡¢Ê¸»úÎó \fIs\fP Ãæ¤ËºÇ½é¤Ëʸ»ú \fIc\fP ¤¬
49 ¸½¤ì¤¿°ÌÃ֤ؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
50 .PP
51 .BR rindex ()
52 ´Ø¿ô¤Ï¡¢Ê¸»úÎó \fIs\fP Ãæ¤ËºÇ¸å¤Ëʸ»ú \fIc\fP ¤¬
53 ¸½¤ì¤¿°ÌÃ֤ؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
54 .PP
55 ʸ»úÎó¤ò½ªÃ¼¤¹¤ë NULL ¥Ð¥¤¥È (\(aq\\0\(aq) ¤Ï¡¢Ê¸»úÎó¤Î°ìÉô¤È¤ß¤Ê¤µ¤ì¤ë¡£
56 .SH ÊÖ¤êÃÍ
57 .BR index ()
58 ¤È
59 .BR rindex ()
60 ´Ø¿ô¤Ï¡¢°ìÃפ·¤¿Ê¸»ú¤Ø¤Î¥Ý¥¤¥ó¥¿¤«¡¢
61 ¤â¤·Ê¸»ú¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï NULL ¤òÊÖ¤¹¡£
62 .SH ½àµò
63 4.3BSD;
64 POSIX.1-2001 ¤Ç¤Ï¡Ö²áµî¤Î̾»Ä (LEGACY)¡×¤È°ÌÃÖÉÕ¤±¤é¤ì¤Æ¤¤¤ë¡£
65 POSIX.1-2008 ¤Ç¤Ï
66 .BR index ()
67 ¤È
68 .BR rindex ()
69 ¤Î»ÅÍͤ¬ºï½ü¤µ¤ì¤Æ¤¤¤ë¡£
70 Âå¤ï¤ê¤Ë¡¢
71 .BR strchr (3)
72 ¤È
73 .BR strrchr (3)
74 ¤Î»ÈÍѤ¬¿ä¾©¤µ¤ì¤Æ¤¤¤ë¡£
75 .SH ´ØÏ¢¹àÌÜ
76 .BR memchr (3),
77 .BR strchr (3),
78 .BR string (3),
79 .BR strpbrk (3),
80 .BR strrchr (3),
81 .BR strsep (3),
82 .BR strspn (3),
83 .BR strstr (3),
84 .BR strtok (3)