ref: 7e4b96f8949a4dc2e1da9a003b148ab0973123b0 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); }