From 29402b1285b2f8b8d65c1e478b59e658faaa2583 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 15 Dec 2005 22:30:40 +0000 Subject: [BZ #1997] * manual/stdio.texi (String Streams): For open_memstream, elaborate a little on malloc reference. --- manual/stdio.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'manual/stdio.texi') 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 -- cgit v1.2.3