update for HEAD-2003091401
[reactos.git] / lib / crtdll / stdio / ferror.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/internal/file.h>
4
5 #ifdef ferror
6 #undef ferror
7 int ferror(FILE *stream);
8 #endif
9
10 /*
11  * @implemented
12  */
13 int ferror(FILE *stream)
14 {
15   return stream->_flag & _IOERR;
16 }