linux/bootstrap: use Forbid/Permit only when thread is main AROS thread
[AROS.git] / compiler / stdc / feof.c
blob222a132bca1df7d9a2ef5e290d7b31011f3fbf19
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function feof().
6 */
7 #include "__stdio.h"
9 /*****************************************************************************
11 NAME */
12 #include <stdio.h>
14 int feof (
16 /* SYNOPSIS */
17 FILE * stream)
19 /* FUNCTION
20 Test the EOF-Flag of a stream. This flag is set automatically by
21 any function which recognises EOF. To clear it, call clearerr().
23 INPUTS
24 stream - The stream to be tested.
26 RESULT
27 != 0, if the stream is at the end of the file, 0 otherwise.
29 NOTES
31 EXAMPLE
33 BUGS
35 SEE ALSO
36 ferror(), clearerr()
38 INTERNALS
40 ******************************************************************************/
42 return (stream->flags & __STDCIO_STDIO_EOF) != 0;
43 } /* feof */