File: wcstok.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (83 lines) | stat: -rw-r--r-- 2,629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" References consulted:
.\"   GNU glibc-2 source code and manual
.\"   Dinkumware C library reference http://www.dinkumware.com/
.\"   OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
.\"   ISO/IEC 9899:1999
.\"
.\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
.\" Translated Sat Oct 23 17:53:50 JST 1999
.\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
.\"
.TH WCSTOK 3 1999-07-25 "GNU" "Linux Programmer's Manual"
.SH ̾
wcstok \- 磻ʸʸȡʬ䤹
.SH 
.nf
.B #include <wchar.h>
.sp
.BI "wchar_t *wcstok(wchar_t *" wcs ", const wchar_t *" delim \
", wchar_t **" ptr );
.fi
.SH 
.BR wcstok ()
ؿϡ
.BR strtok (3)
ؿб磻ʸؿˡ
ޥåɥդư򤵤뤿ΰɲäΤǤ롣
δؿѤơ磻ʸʸ \fIwcs\fP ȡʬ򤹤뤳
Ǥ롣ǡȡ \fIdelim\fP 󤵤Ƥʸޤޤ
ʬʸȤ롣
.PP
 \fIwcs\fP  NULL Ǥʤ \fIwcs\fP 鳫Ϥ졢\fIwcs\fP
 NULL ʤ \fI*ptr\fP 鳫Ϥ롣ޤƤζڤ磻ʸ
åפ롣Ĥޤꡢ\fIdelim\fP ˴ޤޤ磻ʸĶ褦
˥ݥ󥿤˿ʤ롣
磻ʸʸνã顢
.BR wcstok ()
 NULL ֤
ȡĤʤäȤ򼨤θ
.BR wcstok ()
Ƥ
ФƤ NULL ֤褦 \fI*ptr\fP Ŭڤͤꤹ롣
ʳξˤϡ
.BR wcstok ()
ؿϥȡƬ̤ؤ
ݥ󥿤֤Ԥˡȡθˤ롢\fIdelim\fP
˴ޤޤƤʸ L\(aq\\0\(aq ֤뤳Ȥˤäƥȡ 0 
ü롣 \fI*ptr\fP 򹹿
.BR wcstok ()
ƤӽФ
ݤˡ̤줿ȡ³鸡Ǥ褦ˤ롣
.SH ֤
.BR wcstok ()
ؿϼΥȡؤΥݥ󥿤֤ȡ󤬸Ĥ
ʤ NULL ֤
.SH 
C99.
.SH 
ؿͿ磻ʸ \fIwcs\fP ϡؿưˤäƴ˽񤭴
.SH 
ʲΥɤϡ磻ʸʸ˴ޤޤȡФʤ
롼פ롣
.sp
.nf
wchar_t *wcs = ...;
wchar_t *token;
wchar_t *state;
for (token = wcstok(wcs, " \\t\\n", &state);
    token != NULL;
    token = wcstok(NULL, " \\t\\n", &state)) {
    ...
}
.fi
.SH Ϣ
.BR strtok (3),
.BR wcschr (3)