File: wcstok.3

package info (click to toggle)
manpages-ja 0.4.0.0.20020315-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,808 kB
  • ctags: 4
  • sloc: sh: 9,595; perl: 157; makefile: 62
file content (69 lines) | stat: -rw-r--r-- 2,583 bytes parent folder | download | duplicates (2)
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
.\" 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  "July 25, 1999" "GNU" "Linux Programmer's Manual"
.SH ̾
.SH 
.nf
.B #include <wchar.h>
.sp
.BI "wchar_t *wcstok(wchar_t *" wcs ", const wchar_t *" delim ", wchar_t **" ptr );
.fi
.SH 
\fBwcstok\fP ؿϡ\fBstrtok\fP ؿб磻ʸؿ
ޥåɥդư򤵤뤿ΰɲäΤǤ롣
δؿѤơ磻ʸʸ \fIwcs\fP ȡʬ򤹤뤳
Ǥ롣ǡȡ \fIdelim\fP 󤵤Ƥʸޤޤ
ʬʸȤ롣
.PP
 \fIwcs\fP  NULL Ǥʤ \fIwcs\fP 鳫Ϥ졢\fIwcs\fP 
 NULL ʤ \fI*ptr\fP 鳫Ϥ롣ޤƤζڤ磻ʸ
åפ롣Ĥޤꡢ\fIdelim\fP ˴ޤޤ磻ʸĶ褦
˥ݥ󥿤˿ʤ롣
磻ʸʸνã顢\fBwcstok\fP  NULL ֤
ȡĤʤäȤ򼨤θ \fBwcstok\fP Ƥ
ФƤ NULL ֤褦 \fI*ptr\fP Ŭڤͤꤹ롣
ʳξˤϡ\fBwcstok\fP ؿϥȡƬ̤ؤ
ݥ󥿤֤Ԥˡȡθˤ롢\fIdelim\fP 
˴ޤޤƤʸ L'\\0' ֤뤳Ȥˤäƥȡ 0 
ü롣 \fI*ptr\fP 򹹿 \fBwcstok\fP ƤӽФ
ݤˡ̤줿ȡ³鸡Ǥ褦ˤ롣
.SH ֤
\fBwcstok\fP ؿϼΥȡؤΥݥ󥿤֤ȡ󤬸Ĥ
ʤ NULL ֤
.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 
ISO/ANSI C, UNIX98
.SH Ϣ
.BR strtok (3),
.BR wcschr (3)