shithub: scc

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