rewind.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) 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 }