summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2001-05-30 23:47:14 +0000
committergshapiro <gshapiro@FreeBSD.org>2001-05-30 23:47:14 +0000
commit4ae5417dae5dc261d8bf79aa903231d91a8a4716 (patch)
tree7a1921e1e4caf955fa4762409554864adc519158 /lib
parentff6bb62be30b00d95360db29311f4fa48201c308 (diff)
downloadFreeBSD-src-4ae5417dae5dc261d8bf79aa903231d91a8a4716.zip
FreeBSD-src-4ae5417dae5dc261d8bf79aa903231d91a8a4716.tar.gz
Correct the documentation for snprintf() and vsprintf() which actually
return the number of characters that would have been in the new string. Obtained from: OpenBSD MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/printf.313
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 590c1c0..722f351 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -118,7 +118,18 @@ These functions return
the number of characters printed
(not including the trailing
.Ql \e0
-used to end output to strings).
+used to end output to strings),
+except for
+.Fn snprintf
+and
+.Fn vsnprintf ,
+which return the number of characters that would have been printed if the
+.Fa size
+were unlimited
+.Po
+again, not including the final
+.Ql \e0
+.Pc .
.Pp
.Fn Asprintf
and
OpenPOWER on IntegriCloud