about summary refs log tree commit diff
path: root/src/stdio/rewind.c
blob: 6f4b58b5468900cab60ca6e28c494ac2eea1c645 (plain) (blame)
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);
}