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:
parent
80cd95fd1a
commit
3e186c29bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user