diff options
author | hoek <hoek@FreeBSD.org> | 1999-07-25 17:38:59 +0000 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 1999-07-25 17:38:59 +0000 |
commit | 9aa55ad5ba036f0a2dfc53a80c7af7b7da3afedb (patch) | |
tree | f01de1a97a424269423f40ce0d66980e8cc9c195 | |
parent | 36a7b829a04919c4ca14a6e4fe1bf3797c135a82 (diff) | |
download | FreeBSD-src-9aa55ad5ba036f0a2dfc53a80c7af7b7da3afedb.zip FreeBSD-src-9aa55ad5ba036f0a2dfc53a80c7af7b7da3afedb.tar.gz |
asprintf() does use realloc() internally, but saying so in the manpage can be
misinterpreted to mean that the pointer passed to asprintf() must be suitable
for passing to realloc() as-is (ie. either a NULL pointer or a valid pointer).
-rw-r--r-- | lib/libc/stdio/printf.3 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index 8b40223..d34d000 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -34,7 +34,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)printf.3 8.1 (Berkeley) 6/4/93 -.\" $Id$ +.\" $Id: printf.3,v 1.11 1999/07/12 20:47:33 nik Exp $ .\" .Dd June 4, 1993 .Dt PRINTF 3 @@ -103,9 +103,7 @@ and and .Fn vasprintf dynamically allocate a new string with -.Xr malloc 3 -/ -.Xr realloc 3 . +.Xr malloc 3 . .Pp These functions write the output under the control of a .Fa format |