2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 ANSI C function ferror().
8 /*****************************************************************************
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().
23 stream - The stream to be tested.
26 != 0, if the stream had an error, 0 otherwise.
39 ******************************************************************************/
41 return (stream
->flags
& _STDIO_ERROR
) != 0;