ref: 0fc0b5035e8bf20d1925dde69ca2b341ea957a67 dir: /lib/c/rewind.c/
#include <stdio.h> #undef rewind void rewind(FILE *fp) { fp->flags &= ~_IOERR; fseek(fp, 0, SEEK_SET); clearerr(fp); }