summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-06-29 07:52:27 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-06-29 09:49:02 +0200
commit588d27ea86f6488c1a2e3c858f3f224aa6285773 (patch)
treec512ca976d826ab90b107b99e1e3e4b9705cb84b
parentdcaff23c327c9cd8620dbff80f4d0eed9c1829b2 (diff)
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>
-rw-r--r--man3/printf.33
1 files changed, 3 insertions, 0 deletions
diff --git a/man3/printf.3 b/man3/printf.3
index a0a0741da..b8227f9ae 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -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,