move the defines to the resource header and include that where necessary.
[AROS.git] / compiler / posixc / feof.c
blobd6b3914b5ce8c2ff0a50629f7e54c978ba3950b7
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function feof().
6 */
8 #include "__stdio.h"
10 /*****************************************************************************
12 NAME */
13 #include <stdio.h>
15 int feof (
17 /* SYNOPSIS */
18 FILE * stream)
20 /* FUNCTION
21 Test the EOF-Flag of a stream. This flag is set automatically by
22 any function which recognises EOF. To clear it, call clearerr().
24 INPUTS
25 stream - The stream to be tested.
27 RESULT
28 != 0, if the stream is at the end of the file, 0 otherwise.
30 NOTES
31 This function must not be used in a shared library or
32 in a threaded application.
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 ferror(), clearerr()
41 INTERNALS
43 ******************************************************************************/
45 return (stream->flags & __POSIXC_STDIO_EOF) != 0;
46 } /* feof */