diff options
Diffstat (limited to 'libio/stdio/freopen.c')
-rw-r--r-- | libio/stdio/freopen.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libio/stdio/freopen.c b/libio/stdio/freopen.c new file mode 100644 index 00000000000..da3dc1d6411 --- /dev/null +++ b/libio/stdio/freopen.c @@ -0,0 +1,14 @@ +#include "libioP.h" +#include "stdio.h" + +FILE* +freopen(filename, mode, fp) + const char* filename; + const char* mode; + FILE* fp; +{ + CHECK_FILE(fp, NULL); + if (!(fp->_flags & _IO_IS_FILEBUF)) + return NULL; + return _IO_freopen(filename, mode, fp); +} |