clean up allocation/setup logic for open_[w]memstream
authorRich Felker <dalias@aerifal.cx>
Wed, 18 Apr 2018 19:08:16 +0000 (15:08 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 18 Apr 2018 19:08:16 +0000 (15:08 -0400)
commit6019459251c58426808f207d18014b6b1f250a59
treec5cc6d1d74f4eb7078527400166f8248d4c9edbe
parent0b043c7b70b204c43dc7dbdb50b12aa8fa7981e8
clean up allocation/setup logic for open_[w]memstream

bring these functions up to date with the current idioms we use/prefer
in fmemopen and fopencookie.
src/stdio/open_memstream.c
src/stdio/open_wmemstream.c