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 / fileno.c < prev    next >
C/C++ Source or Header  |  1994-08-12  |  180b  |  13 lines

  1. #include "libioP.h"
  2. #include "stdio.h"
  3.  
  4. int
  5. fileno(fp)
  6.      _IO_FILE* fp;
  7. {
  8.   CHECK_FILE(fp, EOF);
  9.   if (!(fp->_flags & _IO_IS_FILEBUF))
  10.     return EOF;
  11.   return _IO_fileno(fp);
  12. }
  13.