shithub: scc

ref: b868a47d2e43c8f622f2a0f65a926dd1c6c33a96
dir: /lib/c/rewind.c/

View raw version

#include <stdio.h>
#undef rewind

void
rewind(FILE *fp)
{
	fp->flags &= ~_IOERR;
	fseek(fp, 0, SEEK_SET);
	clearerr(fp);
}