OSDN Git Service

(split) LDP: Update draft and release (from the previous commit)
[linuxjm/LDP_man-pages.git] / draft / man3 / strsep.3
index 521ff1f..b837f5d 100644 (file)
@@ -59,13 +59,10 @@ glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参
 .sp
 \fBstrsep\fP(): _BSD_SOURCE
 .SH 説明
-If \fI*stringp\fP is NULL, the \fBstrsep\fP()  function returns NULL and does
-nothing else.  Otherwise, this function finds the first token in the string
-\fI*stringp\fP, that is delimited by one of the bytes in the string \fIdelim\fP.
-This token is terminated by overwriting the delimiter with a null byte
-(\(aq\e0\(aq), and \fI*stringp\fP is updated to point past the token.  In case
-no delimiter was found, the token is taken to be the entire string
-\fI*stringp\fP, and \fI*stringp\fP is made NULL.
+\fI*stringp\fP が NULL の場合、 \fBstrsep\fP()  関数は何もせずに NULL を返す。 さもなければ、文字列
+\fIstringp\fP を \fIdelim\fP に含まれるいずれかのバイトで区切ったトークンのうち最初のものを返す。 トークンは、区切り文字を NULL
+バイト (\(aq\e0\(aq) で上書きすることで 終端される。 \fI*stringp\fP は切り出されたトークンの次の位置を示すように更新される。
+区切り文字が見つからない場合、\fI*stringp\fP 文字列全体がトークンとして 扱われ、\fI*stringp\fP は NULL となる。
 .SH 返り値
 \fBstrsep\fP()  関数は、トークンへのポインタを返す。 つまり、元の \fI*stringp\fP の値を返す。
 .SH 属性