shithub: scc

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