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
This commit is contained in:
gshapiro 2001-05-30 23:47:14 +00:00
parent 80cd95fd1a
commit 3e186c29bb

View File

@ -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