don't zero io_Actual on error, this field is automaticaly incremented as soon as...
[AROS.git] / compiler / stdc / rewind.c
blob2f04ca39b800155a9b82d3352c3fea6f6f369e3e
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function rewind()
6 */
8 /*****************************************************************************
10 NAME */
11 #include <stdio.h>
13 void rewind (
15 /* SYNOPSIS */
16 FILE * stream)
18 /* FUNCTION
19 Change the current position in a stream to the beginning.
20 It also clears the error indication of the stream.
22 INPUTS
23 stream - Modify this stream
25 RESULT
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
34 fopen(), fwrite(), fseek()
36 INTERNALS
38 ******************************************************************************/
40 fseek (stream, 0L, SEEK_SET);
41 clearerr (stream);
42 } /* rewind */