OSDN Git Service

(split) LDP: Update release pages
[linuxjm/LDP_man-pages.git] / release / man3 / asprintf.3
index cad5306..a631f5d 100644 (file)
@@ -42,12 +42,10 @@ asprintf, vasprintf \- 文字列を割り当ててそれに出力する
 \fBint vasprintf(char **\fP\fIstrp\fP\fB, const char *\fP\fIfmt\fP\fB, va_list
 \fP\fIap\fP\fB);\fP
 .SH 説明
-The functions \fBasprintf\fP()  and \fBvasprintf\fP()  are analogs of
-\fBsprintf\fP(3)  and \fBvsprintf\fP(3), except that they allocate a string large
-enough to hold the output including the terminating null byte (\(aq\e0\(aq),
-and return a pointer to it via the first argument.  This pointer should be
-passed to \fBfree\fP(3)  to release the allocated storage when it is no longer
-needed.
+\fBasprintf\fP()  関数と \fBvasprintf\fP()  関数とは、それぞれ \fBsprintf\fP(3)  関数と
+\fBvsprintf\fP(3)  関数とに似ているが、 出力文字列を (終端の NULL バイト (\(aq\e0\(aq) も含めて)
+保持するのに十分な大きさのメモリを確保し、 最初の引数にその文字列へのポインタを返す。 このポインタは、不要になったら \fBfree\fP(3)
+に渡し、割り当てられた記憶領域を解放すべきである。
 .SH 返り値
 成功すると、これらの関数は出力されたバイト数を (\fBsprintf\fP(3)  のように) 返す。 メモリの割り当てができなかったり、
 その他エラーが生じると、 これらの関数は \-1 を返し、 \fIstrp\fP の内容は未定義となる。