gcc/libio/stdio/fileno.c
Jason Merrill 6599da043e Initial revision
From-SVN: r14877
1997-08-21 18:57:35 -04:00

13 lines
180 B
C

#include "libioP.h"
#include "stdio.h"
int
fileno(fp)
_IO_FILE* fp;
{
CHECK_FILE(fp, EOF);
if (!(fp->_flags & _IO_IS_FILEBUF))
return EOF;
return _IO_fileno(fp);
}