shithub: scc

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