OSDN Git Service

(split) LDP: Update draft
[linuxjm/LDP_man-pages.git] / draft / man3 / printf.3
index bfdf4fd..4b12376 100644 (file)
@@ -117,13 +117,10 @@ C99 と POSIX.1\-2001 では、 \fBsprintf\fP(), \fBsnprintf\fP(), \fBvsprintf\f
 .SS "Return Values"
 成功時には、上記の関数は書き込まれた文字数を返す (文字列の最後を示すために使用する NULL バイトは数に含まれない)。
 
-The functions \fBsnprintf\fP()  and \fBvsnprintf\fP()  do not write more than
-\fIsize\fP bytes (including the terminating null byte (\(aq\e0\(aq)).  If the
-output was truncated due to this limit, then the return value is the number
-of characters (excluding the terminating null byte)  which would have been
-written to the final string if enough space had been available.  Thus, a
-return value of \fIsize\fP or more means that the output was truncated.  (See
-also below under NOTES.)
+\fBsnprintf\fP()  と \fBvsnprintf\fP()  は、 \fIsize\fP バイトを越える文字数を書き込まない (\fIsize\fP
+には文字列を終端する NULL バイト (\(aq\e0\(aq) も含まれる)。 この制限によって出力が切り詰められた場合には、
+もし十分なスペースがあれば書き込まれたであろう文字の個数 (文字列を終端する NULL バイトを除く) を返す。 従って、返り値が \fIsize\fP
+以上だった場合、出力が切り詰められたことを意味する (後述の注意も参照のこと)。
 
 エラーが発生した場合は、負の数を返す。
 .SS フォーマット文字列のフォーマット
@@ -541,6 +538,6 @@ make_message(const char *fmt, ...)
 \fBprintf\fP(1), \fBasprintf\fP(3), \fBdprintf\fP(3), \fBscanf\fP(3), \fBsetlocale\fP(3),
 \fBwcrtomb\fP(3), \fBwprintf\fP(3), \fBlocale\fP(5)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.63 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.64 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。