printf.3: SUSv3 and later agree with C99 for the snprintf() return value

Determined by inspection of the SUSv3 and SUSv4 specifications.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-06-29 07:52:27 +02:00
parent dcaff23c32
commit 588d27ea86
1 changed files with 3 additions and 0 deletions

View File

@ -832,6 +832,9 @@ while C99 allows
to be NULL in this case, and gives the return value (as always)
as the number of characters that would have been written in case
the output string has been large enough.
SUSv3 and later align their specification of
.BR snprintf ()
with C99.
.PP
Linux libc4 knows about the five C standard flags.
It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP,