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