2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
10 /*****************************************************************************
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().
25 stream - The stream to be tested.
28 != 0, if the stream is at the end of the file, 0 otherwise.
31 This function must not be used in a shared library or
32 in a threaded application.
43 ******************************************************************************/
45 return (stream
->flags
& __POSIXC_STDIO_EOF
) != 0;