summaryrefslogblamecommitdiff
path: root/src/stdio/ferror.c
blob: 8288a93d96713babe9dc76ae5dab03a2aab14037 (plain) (tree)
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);
weak_alias(ferror, _IO_ferror_unlocked);