shithub: scc

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