shithub: scc

ref: cf871907e412224c33be01bdaaf207bf2479ec26
dir: /src/libc/stdio/rewind.c/

View raw version
#include <stdio.h>
#undef rewind

void
rewind(FILE *fp)
{
	fp->flags &= ~_IOERR;
	fseek(fp, 0, SEEK_SET);
	clearerr(fp);
}