clean up allocation/setup logic for fmemopen
authorRich Felker <dalias@aerifal.cx>
Wed, 18 Apr 2018 18:57:10 +0000 (14:57 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 18 Apr 2018 18:58:57 +0000 (14:58 -0400)
commit0b043c7b70b204c43dc7dbdb50b12aa8fa7981e8
treecb094aec35a57a87f6483f436c38ea064ad067ca
parent4245a233c147e18a841bc6ccd5aafb65d6bca163
clean up allocation/setup logic for fmemopen

rather than manually performing pointer arithmetic to carve multiple
objects out of one allocation, use a containing struct that
encompasses them all.
src/stdio/fmemopen.c