summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/ferror.c
blob: b4e438b315060451dbced02944e62a60ff0c50d4 (plain)
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <io.h>

int ferror(FILE *stream)
{
	if (!stream)
		return 0;

	return (stream->flags & _IO_ERR) != 0;
}