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

#undef ferror

int ferror(FILE *f)
{
	return !!(f->flags & F_ERR);
}

weak_alias(ferror, ferror_unlocked);