OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / release / man3 / strsep.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:00:10 1993 by Rik Faith (faith@cs.unc.edu)
28 .\" Modified Mon Jan 20 12:04:18 1997 by Andries Brouwer (aeb@cwi.nl)
29 .\" Modified Tue Jan 23 20:23:07 2001 by Andries Brouwer (aeb@cwi.nl)
30 .\"
31 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
32 .\"     all rights reserved.
33 .\" Translated Tue Dec 16 10:06:16 JST 1997
34 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
35 .\" Updated Tue Apr 10 11:19:58 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
36 .\" Updated 2009-02-12 by Kentaro Shirakata <argrath@ub32.org>
37 .\"
38 .\" WORD:       delimiter       ¶èÀÚ¤êʸ»ú
39 .\"
40 .TH STRSEP 3  2011-09-28 "GNU" "Linux Programmer's Manual"
41 .SH Ì¾Á°
42 strsep \- Ê¸»úÎ󤫤é¥È¡¼¥¯¥ó¤ò¼è¤ê½Ð¤¹
43 .SH ½ñ¼°
44 .nf
45 .B #include <string.h>
46 .sp
47 .BI "char *strsep(char **" stringp ", const char *" delim );
48 .fi
49 .sp
50 .in -4n
51 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
52 .RB ( feature_test_macros (7)
53 »²¾È):
54 .in
55 .sp
56 .BR strsep ():
57 _BSD_SOURCE
58 .SH ÀâÌÀ
59 \fI*stringp\fP ¤¬ NULL ¤Î¾ì¹ç¡¢
60 .BR strsep ()
61 ´Ø¿ô¤Ï²¿¤â¤»¤º¤Ë NULL ¤òÊÖ¤¹¡£
62 ¤µ¤â¤Ê¤±¤ì¤Ð¡¢Ê¸»úÎó \fIstringp\fP ¤ò
63 \fIdelim\fP ¤Ë´Þ¤Þ¤ì¤ëʸ»ú¤Ç¶èÀڤä¿
64 ¥È¡¼¥¯¥ó¤Î¤¦¤ÁºÇ½é¤Î¤â¤Î¤òÊÖ¤¹¡£
65 ¥È¡¼¥¯¥ó¤Ï¡¢¶èÀÚ¤êʸ»ú¤ò NULL ¥Ð¥¤¥È (\(aq\\0\(aq) ¤Ç¾å½ñ¤­¤¹¤ë¤³¤È¤Ç
66 ½ªÃ¼¤µ¤ì¤ë¡£
67 \fI*stringp\fP ¤ÏÀÚ¤ê½Ð¤µ¤ì¤¿¥È¡¼¥¯¥ó¤Î¼¡¤Î°ÌÃÖ¤ò¼¨¤¹¤è¤¦¤Ë¹¹¿·¤µ¤ì¤ë¡£
68 ¶èÀÚ¤êʸ»ú¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¡¢\fI*stringp\fP Ê¸»úÎóÁ´ÂΤ¬¥È¡¼¥¯¥ó¤È¤·¤Æ
69 °·¤ï¤ì¡¢\fI*stringp\fP ¤Ï NULL ¤È¤Ê¤ë¡£
70 .SH ÊÖ¤êÃÍ
71 .BR strsep ()
72 ´Ø¿ô¤Ï¡¢¥È¡¼¥¯¥ó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
73 ¤Ä¤Þ¤ê¡¢¸µ¤Î \fI*stringp\fP ¤ÎÃͤòÊÖ¤¹¡£
74 .SH ½àµò
75 4.4BSD.
76 .SH Ãí°Õ
77 .BR strsep ()
78 ´Ø¿ô¤Ï¡¢
79 .BR strtok (3)
80 ´Ø¿ô¤¬¶õ¤Î¥Õ¥£¡¼¥ë¥É¤ò
81 °·¤¨¤Ê¤¤¤¿¤á¤Ë¡¢¤½¤ÎÂåÂØÉʤȤ·¤ÆƳÆþ¤µ¤ì¤¿¡£
82 ¤·¤«¤·¤Ê¤¬¤é¡¢
83 .BR strtok (3)
84 ´Ø¿ô¤Ï C89/C99 ¤Ë½àµò¤·¤Æ¤ª¤ê¡¢¤è¤ê°Ü¿¢À­¤¬¤¢¤ë¡£
85 .SH ¥Ð¥°
86 ¤³¤Î´Ø¿ô¤ò»È¤¦»þ¤ÏÃí°Õ¤¹¤ë¤³¤È¡£
87 ¤â¤·»È¤¦¤Ê¤é¡¢°Ê²¼¤Î¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¡£
88 .IP * 2
89 ¤³¤Î´Ø¿ô¤ÏºÇ½é¤Î°ú¿ô¤òÊѹ¹¤¹¤ë¡£
90 .IP *
91 ¤³¤Î´Ø¿ô¤ÏÄê¿ôʸ»úÎó¤Ë¤Ï»È¤¨¤Ê¤¤¡£
92 .IP *
93 ¶èÀÚ¤êʸ»ú¤¬²¿¤Ç¤¢¤Ã¤¿¤«Ê¬¤«¤é¤Ê¤¯¤Ê¤ë¡£
94 .SH ´ØÏ¢¹àÌÜ
95 .BR index (3),
96 .BR memchr (3),
97 .BR rindex (3),
98 .BR strchr (3),
99 .BR string (3),
100 .BR strpbrk (3),
101 .BR strspn (3),
102 .BR strstr (3),
103 .BR strtok (3)