X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=release%2Fman3%2Fstrtok.3;h=37d7f3e1df03e2d3db287ee9bc7086ed061176e2;hp=2e615549cda98f38eb9c30f6f7dc425deced1388;hb=25a9ae037fb2517d0cf4e625fb5bdbc5f06e004d;hpb=5fe1b224ddd3974fa476da97e43b7e4b6ed29353 diff --git a/release/man3/strtok.3 b/release/man3/strtok.3 index 2e615549..37d7f3e1 100644 --- a/release/man3/strtok.3 +++ b/release/man3/strtok.3 @@ -55,10 +55,9 @@ glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参 _XOPEN_SOURCE || _POSIX_SOURCE .ad b .SH 説明 -The \fBstrtok\fP() function breaks a string into a sequence of zero or more -nonempty tokens. On the first call to \fBstrtok\fP() the string to be parsed -should be specified in \fIstr\fP. In each subsequent call that should parse -the same string, \fIstr\fP must be NULL. +\fBstrtok\fP() 関数は文字列を 0 個以上の空でないトークンの列に分割する。 \fBstrtok\fP() +を最初に呼び出す際には、解析対象の文字列を \fIstr\fP に 指定する。同じ文字列の解析を行うその後の呼び出しでは、 \fIstr\fP は NULL +にしなければならない。 \fIdelim\fP 引き数には、解析対象の文字列をトークンに区切るのに使用する バイト集合を指定する。同じ文字列を解析する一連の呼び出しにおいて、 @@ -94,10 +93,9 @@ nonempty strings. Thus, for example, given the string "\fIaaa;;bbb,\fP", successive calls to \fBstrtok\fP() that specify the delimiter string "\fI;,\fP" would return the strings "\fIaaa\fP" and "\fIbbb\fP", and then a NULL pointer. -The \fBstrtok_r\fP() function is a reentrant version \fBstrtok\fP(). The -\fIsaveptr\fP argument is a pointer to a \fIchar\ *\fP variable that is used -internally by \fBstrtok_r\fP() in order to maintain context between successive -calls that parse the same string. +\fBstrtok_r\fP() 関数は \fBstrtok\fP() のリエントラント版である。 \fIsaveptr\fP 引き数は \fIchar\ *\fP +変数へのポインタであり、 同じ文字列の解析を行う \fBstrtok_r\fP() の呼び出し間で処理状況を保存するために \fBstrtok_r\fP() +内部で使用される。 \fBstrtok_r\fP() を最初に呼び出す際には、 \fIstr\fP は解析対象の文字列を指していなければならず、 \fIsaveptr\fP の値は無視される。それ以降の呼び出しでは、 \fIstr\fP は NULL とし、 \fIsaveptr\fP @@ -106,11 +104,11 @@ calls that parse the same string. \fBstrtok_r\fP() の呼び出し時に異なる \fIsaveptr\fP 引き数を指定することで、 異なる文字列の解析を同時に行うことができる。 .SH 返り値 \fBstrtok\fP() と \fBstrtok_r\fP() は次のトークンへのポインタか、 トークンがなければ NULL を返す。 -.SH ATTRIBUTES -.SS "Multithreading (see pthreads(7))" -The \fBstrtok\fP() function is not thread\-safe. +.SH 属性 +.SS "マルチスレッディング (pthreads(7) 参照)" +The \fBstrtok\fP() 関数はスレッドセーフではない。 .LP -The \fBstrtok_r\fP() function is thread\-safe. +\fBstrtok_r\fP() 関数はスレッドセーフである。 .SH 準拠 .TP \fBstrtok\fP()