aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorBen Smithurst <ben@FreeBSD.org>2001-01-01 05:19:52 +0000
committerBen Smithurst <ben@FreeBSD.org>2001-01-01 05:19:52 +0000
commit7e7a6ec0336a376f59ad113b6dcb97c444b79fa4 (patch)
tree57b2d7a5d9bd95ed8b84c876a1cb456074987d0b /lib/libc
parent4bfba0cf194469a52e0325afc8dca5bc48232373 (diff)
downloadsrc-7e7a6ec0336a376f59ad113b6dcb97c444b79fa4.tar.gz
src-7e7a6ec0336a376f59ad113b6dcb97c444b79fa4.zip
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
Notes
Notes: svn path=/head/; revision=70553
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/printf.37
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 5ea5163e31d3..308a1b49cafb 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -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.