Fix: 64-bit compatibility
[AROS.git] / compiler / stdc / clearerr.c
blob9690a6f0ac846838bed4b7fdf9a91fa66c33be06
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 &= ~(__STDCIO_STDIO_EOF | __STDCIO_STDIO_ERROR);
45 } /* clearerr */