scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

ferror.c (88B)


      1 #include <stdio.h>
      2 
      3 #undef ferror
      4 
      5 int
      6 ferror(FILE *fp)
      7 {
      8 	return fp->flags & _IOERR;
      9 }