OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / release / man3 / strstr.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 17:56:43 1993 by Rik Faith (faith@cs.unc.edu)
28 .\" Added history, aeb, 980113.
29 .\" 2005-05-05 mtk: added strcasestr()
30 .\"
31 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
32 .\"     all rights reserved.
33 .\" Translated Tue Dec 16 10:06:54 JST 1997
34 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
35 .\" Updated Sun Sep  5 JST 1999 by by Kentaro Shirakata <argrath@yo.rim.or.jp>
36 .\" Updated Wed Apr 20 JST 2005 by by Kentaro Shirakata <argrath@ub32.org>
37 .\"
38 .TH STRSTR 3  2005-04-05 "GNU" "Linux Programmer's Manual"
39 .SH Ì¾Á°
40 strstr, strcasestr \- Éôʬʸ»úÎó¤Î°ÌÃÖ¤ò¼¨¤¹
41 .SH ½ñ¼°
42 .nf
43 .B #include <string.h>
44 .sp
45 .BI "char *strstr(const char *" haystack ", const char *" needle );
46 .sp
47 .B #define _GNU_SOURCE
48 .sp
49 .B #include <string.h>
50 .sp
51 .BI "char *strcasestr(const char *" haystack ", const char *" needle );
52 .fi
53 .SH ÀâÌÀ
54 .BR strstr ()
55 ´Ø¿ô¤Ï¡¢Éôʬʸ»úÎó \fIneedle\fP ¤¬Ê¸»úÎó \fIhaystack\fP Ãæ
56 ¤ÇºÇ½é¤Ë¸½¤ì¤ë°ÌÃÖ¤ò¸«¤Ä¤±¤ë¡£
57 ʸ»úÎó¤ò½ªÃ¼¤¹¤ë \(aq\\0\(aq Ê¸»ú¤ÏÈæ³Ó¤µ¤ì¤Ê¤¤¡£
58
59 .BR strcasestr ()
60 ´Ø¿ô¤Ï
61 .BR strstr ()
62 ´Ø¿ô¤ÈƱÍͤÀ¤¬¡¢
63 ξÊý¤Î°ú¿ô¤ËÂФ·¤ÆÂçʸ»ú¾®Ê¸»ú¤ò̵»ë¤¹¤ë¡£
64 .SH ÊÖ¤êÃÍ
65 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢Éôʬʸ»úÎó¤Î³«»Ï¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤òÊÖ¤·¡¢
66 ¤â¤·Éôʬʸ»úÎ󤬸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï NULL ¤òÊÖ¤¹¡£
67 .SH ½àµò
68 .BR strstr ()
69 ´Ø¿ô¤Ï C89 ¤È C99 ¤Ë½àµò¤·¤Æ¤¤¤ë¡£
70 .BR strcasestr ()
71 ´Ø¿ô¤ÏÈóɸ½à³ÈÄ¥¤Ç¤¢¤ë¡£
72 .SH ¥Ð¥°
73 Linux libc ¤Î½é´ü¤Î¥Ð¡¼¥¸¥ç¥ó(4.5.26 ¤Þ¤Ç)¤Ï
74 .BR strstr ()
75 ´Ø¿ô¤Î \fIneedle\fP °ú¿ô¤Ë¶õʸ»úÎó¤ò»ØÄê¤Ç¤­¤Ê¤¤¡£
76 ºÇ¶á¤Î¥Ð¡¼¥¸¥ç¥ó(4.6.27 °Ê¹ß)¤ÏÀµ¤·¤¯Æ°ºî¤·¡¢
77 \fIneedle\fP ¤¬¶õ¤Î»þ¤Ï \fIhaystack\fP ¤òÊÖ¤¹¡£
78 .SH ´ØÏ¢¹àÌÜ
79 .BR index (3),
80 .BR memchr (3),
81 .BR rindex (3),
82 .BR strcasecmp (3),
83 .BR strchr (3),
84 .BR strpbrk (3),
85 .BR strsep (3),
86 .BR strspn (3),
87 .BR strtok (3),
88 .BR wcsstr (3),
89 .BR feature_test_macros (7)