Make it a bit clearer that asprintf doesn't actually "return" a pointer in

the normal sense of the word, but does it through one of its arguments which
is a pointer to a pointer.

PR:		23717
Submitted by:	phk
This commit is contained in:
ben 2001-01-01 05:19:52 +00:00
parent c368baf0b4
commit 97e5bd7d4e

View File

@ -123,10 +123,9 @@ used to end output to strings).
.Fn Asprintf
and
.Fn vasprintf
return a pointer to a buffer sufficiently large to hold the
string in the
.Fa ret
argument;
set
.Fa *ret
to be a pointer to a buffer sufficiently large to hold the formatted string.
This pointer should be passed to
.Xr free 3
to release the allocated storage when it is no longer needed.