aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/clearerr.c
blob: b2a70d589e555d24c84b8fbe45b672bfb825bc60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "stdio_impl.h"

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

weak_alias(clearerr, clearerr_unlocked);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif