implement open_memstream

this is the first attempt, and may have bugs. only minimal testing has
been performed.
This commit is contained in:
Rich Felker
2011-09-03 00:45:21 -04:00
parent adb7093caa
commit b158b32a44
2 changed files with 95 additions and 0 deletions

View File

@ -121,6 +121,7 @@ FILE *tmpfile(void);
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
FILE *open_memstream(char **, size_t *);
FILE *fdopen(int, const char *);
FILE *popen(const char *, const char *);
int pclose(FILE *);