shithub: scc

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