update for HEAD-2003091401
[reactos.git] / lib / msvcrt / 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 int *_errno(void);
11
12 /*
13  * @implemented
14  */
15 int ferror(FILE *stream)
16 {
17   return stream->_flag & _IOERR;
18 }