shithub: scc

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