aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-03-09 05:10:01 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-09 05:12:56 +0100
commite3d1b1b7406299f6e79a0258d4cc7ef4c2777ebf (patch)
tree4b1ee704a0e27ca5e2e504a6ac63d33268e99973
parent31a3c488475b48dfea04a7b63c5b72b13c50bdc5 (diff)
downloadman-pages-e3d1b1b7406299f6e79a0258d4cc7ef4c2777ebf.tar.gz
open_memstream.3: Rework text describing dynamic allocation
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/open_memstream.35
1 files changed, 2 insertions, 3 deletions
diff --git a/man3/open_memstream.3 b/man3/open_memstream.3
index ce4cbaaf35..c6cdc3a9e9 100644
--- a/man3/open_memstream.3
+++ b/man3/open_memstream.3
@@ -44,9 +44,8 @@ _GNU_SOURCE
The
.BR open_memstream ()
function opens a stream for writing to a buffer.
-The function dynamically allocates the buffer (in the manner of
-.BR malloc (3)),
-and the buffer automatically grows as required.
+The function dynamically allocates the buffer, growing it as required.
+Initially, the buffer has a size of zero.
After closing the stream, the caller should
.BR free (3)
this buffer.