shithub: scc

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