update for HEAD-2003091401
[reactos.git] / lib / crtdll / stdio / feof.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/errno.h>
4 #include <msvcrt/internal/file.h>
5
6 #ifdef feof
7 #undef feof
8 int feof(FILE *stream);
9 #endif
10
11 /*
12  * @implemented
13  */
14 int feof(FILE *stream)
15 {
16   if (stream == NULL) {
17     __set_errno (EINVAL);
18     return EOF;
19   }
20
21   return stream->_flag & _IOEOF;
22 }