update mappings to reflect recent changes
[AROS.git] / compiler / clib / clearerr.c
blob2a44e40143f864aa2e7264b34514fb3a33957e86
1 /*
2 Copyright © 1995-2012, 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 &= ~(_STDIO_EOF | _STDIO_ERROR);
45 } /* clearerr */