summaryrefslogtreecommitdiff
path: root/05/musl-0.6.0/src/stdio/clearerr.c
blob: a40912044120442f22b7b8bcd388ff8b7eec4caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "stdio_impl.h"

void clearerr(FILE *f)
{
	FLOCK(f);
	f->flags &= ~(F_EOF|F_ERR);
	FUNLOCK(f);
}

void clearerr_unlocked(FILE *f)
{
	FLOCK(f);
	f->flags &= ~(F_EOF|F_ERR);
	FUNLOCK(f);
}