shithub: scc

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