summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/ferror_unlocked.c
blob: 3c622dd9746436a6a628c9fd310d89563f3fab9c (plain)
1
2
3
4
5
6
7
#include <__stdio.h>
#include <stdio.h>

int ferror_unlocked(FILE *stream)
{
	return (stream) ? (stream->flags & _IO_ERR) != 0 : 0;
}