revert between 56095 -> 55830 in arch
[AROS.git] / compiler / posixc / clearerr.c
bloba8afced8b0509ab8e644a440d00b5cc6a7891701
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function clearerr().
6 */
8 #include "__stdio.h"
10 /*****************************************************************************
12 NAME */
13 #include <stdio.h>
15 void clearerr (
17 /* SYNOPSIS */
18 FILE * stream)
20 /* FUNCTION
21 Clear EOF and error flag in a stream. You must call this for
22 example after you have read the file until EOF, then appended
23 something to it and want to continue reading.
25 INPUTS
26 stream - The stream to be reset.
28 RESULT
29 None.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 ferror(), clearerr()
40 INTERNALS
42 ******************************************************************************/
44 stream->flags &= ~(__POSIXC_STDIO_EOF | __POSIXC_STDIO_ERROR);
45 } /* clearerr */