Category : C Source Code
Archive   : CSRC2.ZIP
Filename : FERROR.C

 
Output of file : FERROR.C contained in archive : CSRC2.ZIP
/*
* f e r r o r . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title feof Test for I/O error
index Test for I/O error

synopsis
s.nf
ferror(iop);
FILE *iop;
.s.f
Description

Return 1 if error on iop, else zero.

Bugs

#endif

#include

#ifdef ferror
#undef ferror
#endif

int
ferror(fd)
FILE *fd;
/*
* Return TRUE on eof
*/
{
return ((fd->_flag & _IOERR) != 0);
}


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : FERROR.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/