Initial revision
This commit is contained in:
14
lang/cem/libcc.ansi/stdio/ferror.c
Normal file
14
lang/cem/libcc.ansi/stdio/ferror.c
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user