Don't try to setup and use X11 shared memory if
[tangerine.git] / compiler / clib / ferror.c
blobd19deb547a199d3857a75993243681a4c876e57b
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function ferror().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <stdio.h>
13 int ferror (
15 /* SYNOPSIS */
16 FILE * stream)
18 /* FUNCTION
19 Test the error flag of a stream. This flag is set automatically by
20 any function that detects an error. To clear it, call clearerr().
22 INPUTS
23 stream - The stream to be tested.
25 RESULT
26 != 0, if the stream had an error, 0 otherwise.
28 NOTES
30 EXAMPLE
32 BUGS
34 SEE ALSO
35 ferror(), clearerr()
37 INTERNALS
39 ******************************************************************************/
41 return (stream->flags & _STDIO_ERROR) != 0;
42 } /* ferror */