scc

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

rewind.c (123B)


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