scc

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

rewind.c (124B)


      1 #include <stdio.h>
      2 
      3 #undef rewind
      4 
      5 void
      6 rewind(FILE *fp)
      7 {
      8 	fp->flags &= ~_IOERR;
      9 	fseek(fp, 0, SEEK_SET);
     10 	clearerr(fp);
     11 }