home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / libio-4.6.26 / stdio / freopen.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-12  |  264 b   |  15 lines

  1. #include "libioP.h"
  2. #include "stdio.h"
  3.  
  4. FILE*
  5. freopen(filename, mode, fp)
  6.      const char* filename;
  7.      const char* mode;
  8.      FILE* fp;
  9. {
  10.   CHECK_FILE(fp, NULL);
  11.   if (!(fp->_flags & _IO_IS_FILEBUF))
  12.     return NULL;
  13.   return _IO_freopen(filename, mode, fp);
  14. }
  15.