Fixed UHCI port bits for big endian machines.
[cake.git] / compiler / clib / clearerr.c
blob83e1ea68f5b742dda56d8e0cc875a6171d3b0435
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function clearerr().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <stdio.h>
13 void clearerr (
15 /* SYNOPSIS */
16 FILE * stream)
18 /* FUNCTION
19 Clear EOF and error flag in a stream. You must call this for
20 example after you have read the file until EOF, then appended
21 something to it and want to continue reading.
23 INPUTS
24 stream - The stream to be reset.
26 RESULT
27 None.
29 NOTES
31 EXAMPLE
33 BUGS
35 SEE ALSO
36 ferror(), clearerr()
38 INTERNALS
40 ******************************************************************************/
42 stream->flags &= ~(_STDIO_EOF | _STDIO_ERROR);
43 } /* clearerr */