tools/toollib: remove from main Makefile.in
[AROS.git] / compiler / posixc / ferror.c
blob55fd0795b81772ae690f19a1d1b5d61f38dd95e5
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function ferror().
6 */
8 #include "__stdio.h"
10 /*****************************************************************************
12 NAME */
13 #include <stdio.h>
15 int ferror (
17 /* SYNOPSIS */
18 FILE * stream)
20 /* FUNCTION
21 Test the error flag of a stream. This flag is set automatically by
22 any function that detects an error. To clear it, call clearerr().
24 INPUTS
25 stream - The stream to be tested.
27 RESULT
28 != 0, if the stream had an error, 0 otherwise.
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
37 ferror(), clearerr()
39 INTERNALS
41 ******************************************************************************/
43 return (stream->flags & __POSIXC_STDIO_ERROR) != 0;
44 } /* ferror */