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