From 28e9041cc224267271fbcd8db22bea115912365b Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 21 Aug 1997 22:57:35 +0000 Subject: Initial revision git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14877 138bc75d-0d04-0410-961f-82ee72b054a4 --- libio/stdio/freopen.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libio/stdio/freopen.c (limited to 'libio/stdio/freopen.c') 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); +} -- cgit v1.2.1