summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/stdio/rewind.c
blob: 6f4b58b5468900cab60ca6e28c494ac2eea1c645 (plain)
1
2
3
4
5
6
7
8
9
#include "stdio_impl.h"

void rewind(FILE *f)
{
	FLOCK(f);
	__fseeko_unlocked(f, 0, SEEK_SET);
	f->flags &= ~F_ERR;
	FUNLOCK(f);
}