shithub: scc

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