After closing the stream, the caller should
.BR free (3)
this buffer.
-
+.PP
The locations pointed to by
.IR ptr
and
performs no further output on the stream.
If further output is performed, then the stream
must again be flushed before trying to access these values.
-
+.PP
A null byte is maintained at the end of the buffer.
This byte is
.I not
included in the size value stored at
.IR sizeloc .
-
+.PP
The stream maintains the notion of a current position,
which is initially zero (the start of the buffer).
Each write operation implicitly adjusts the buffer position.
Moving the buffer position past the end
of the data already written fills the intervening space with
null characters.
-
+.PP
The
.BR open_wmemstream ()
is similar to
.BR open_wmemstream
T} Thread safety MT-Safe
.TE
-
+.sp 1
.SH CONFORMING TO
POSIX.1-2008.
These functions are not specified in POSIX.1-2001,