X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;ds=sidebyside;f=release%2Fman3%2Fwordexp.3;h=08626fd036f118027462d4a2d1c2e1763c3b8ea7;hb=25a9ae037fb2517d0cf4e625fb5bdbc5f06e004d;hp=1e57e3b8ff9df6ba0cd565fefbc1f17431a5316e;hpb=5fe1b224ddd3974fa476da97e43b7e4b6ed29353;p=linuxjm%2FLDP_man-pages.git diff --git a/release/man3/wordexp.3 b/release/man3/wordexp.3 index 1e57e3b8..08626fd0 100644 --- a/release/man3/wordexp.3 +++ b/release/man3/wordexp.3 @@ -42,15 +42,12 @@ glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参 .sp \fBwordexp\fP(), \fBwordfree\fP(): _XOPEN_SOURCE .SH 説明 -The function \fBwordexp\fP() performs a shell\-like expansion of the string -\fIs\fP and returns the result in the structure pointed to by \fIp\fP. The data -type \fIwordexp_t\fP is a structure that at least has the fields \fIwe_wordc\fP, -\fIwe_wordv\fP, and \fIwe_offs\fP. The field \fIwe_wordc\fP is a \fIsize_t\fP that -gives the number of words in the expansion of \fIs\fP. The field \fIwe_wordv\fP -is a \fIchar\ **\fP that points to the array of words found. The field -\fIwe_offs\fP of type \fIsize_t\fP is sometimes (depending on \fIflags\fP, see below) -used to indicate the number of initial elements in the \fIwe_wordv\fP array -that should be filled with NULLs. +関数 \fBwordexp\fP() はシェルのように文字列 \fIs\fP を展開し、 \fIp\fP で指し示す構造体に結果を返す。 データ型 +\fIwordexp_t\fP は少なくともフィールド \fIwe_wordc\fP, \fIwe_wordv\fP, \fIwe_offs\fP を持つ構造体である。 +フィールド \fIwe_wordc\fP は \fIsize_t\fP であり、 \fIs\fP を展開した結果に単語がいくつあるかを表す。 フィールド +\fIwe_wordv\fP は \fIchar\ **\fP であり、見つかった単語の配列を指し示す。 \fIsize_t\fP 型のフィールド \fIwe_offs\fP +は、 \fIwe_wordv\fP 配列にある初期要素のうちいくつが NULL で埋められるべきかを表すのに使われたりする (\fIflags\fP +により決定される。下記を参照。)。 .LP 関数 \fBwordfree\fP() は割り当てたメモリを再度解放する。 より正確にいうと、この関数はその引き数を解放するのではなく、 配列 \fIwe_wordv\fP とそれが指し示す文字列を解放する。