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:
Gregory Neil Shapiro 2001-05-30 23:47:14 +00:00
parent 1c11b01562
commit 1259dd85eb

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