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:
parent
4bfba0cf19
commit
7e7a6ec033
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user