shithub: scc

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