summaryrefslogtreecommitdiff
path: root/src/stdio/clearerr.c
blob: 3bf94d30795d76d9d408000ac3f911f16090437f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "stdio_impl.h"

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

weak_alias(clearerr, clearerr_unlocked);