ack/lang/cem/libcc.ansi/stdio/ferror.c
1989-05-30 13:34:25 +00:00

15 lines
180 B
C

/*
* ferror .c - test if an error on a stream occurred
*/
/* $Header$ */
#include <stdio.h>
#undef ferror
int
ferror(FILE *stream)
{
return (stream->_flags & _IOERR) != 0;
}