implement fmemopen

testing so far has been minimal. may need further work.
This commit is contained in:
Rich Felker
2011-09-03 23:26:17 -04:00
parent 1e69376435
commit d4fa6f0e08
2 changed files with 67 additions and 18 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 *fmemopen(void *, size_t, const char *);
FILE *open_memstream(char **, size_t *);
FILE *fdopen(int, const char *);
FILE *popen(const char *, const char *);