home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / gnu / libg++-2.6.2.lha / libg++-2.6.2 / libio / stdio / freopen.c < prev    next >
C/C++ Source or Header  |  1994-08-12  |  264b  |  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.