about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-12-15 22:30:40 +0000
committerRoland McGrath <roland@gnu.org>2005-12-15 22:30:40 +0000
commit29402b1285b2f8b8d65c1e478b59e658faaa2583 (patch)
tree9e6e938e1a351463f302fd58edcc68fc296c9908
parent2826ac7e140c604a4f79362f50cf0a08a6c230f9 (diff)
downloadglibc-29402b1285b2f8b8d65c1e478b59e658faaa2583.tar.gz
glibc-29402b1285b2f8b8d65c1e478b59e658faaa2583.tar.xz
glibc-29402b1285b2f8b8d65c1e478b59e658faaa2583.zip
[BZ #1997]
	* manual/stdio.texi (String Streams): For open_memstream, elaborate a
	little on malloc reference.
-rw-r--r--ChangeLog4
-rw-r--r--manual/stdio.texi5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b03c45c9a3..3ed4698053 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-12-15  Roland McGrath  <roland@redhat.com>
 
+	[BZ #1997]
+	* manual/stdio.texi (String Streams): For open_memstream, elaborate a
+	little on malloc reference.
+
 	* sysdeps/alpha/fpu/s_cacosf.c: Don't use sysdeps/generic/.
 	* sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
 	* sysdeps/alpha/fpu/s_casinf.c: Likewise.
diff --git a/manual/stdio.texi b/manual/stdio.texi
index 29de41a167..e4278b7a32 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -4852,8 +4852,9 @@ Got r
 @comment GNU
 @deftypefun {FILE *} open_memstream (char **@var{ptr}, size_t *@var{sizeloc})
 This function opens a stream for writing to a buffer.  The buffer is
-allocated dynamically (as with @code{malloc}; @pxref{Unconstrained
-Allocation}) and grown as necessary.
+allocated dynamically and grown as necessary, using @code{malloc}.
+After you've closed the stream, this buffer is your responsibility to
+clean up using @code{free} or @code{realloc}.  @xref{Unconstrained Allocation}.
 
 When the stream is closed with @code{fclose} or flushed with
 @code{fflush}, the locations @var{ptr} and @var{sizeloc} are updated to