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