purge remaining gpl code from clib, and make clib build again
[tangerine.git] / compiler / clib / rewind.c
blobb56684c4cb98020c4c291f567615248650f80330
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 Change the position in a stream.
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.
21 INPUTS
22 stream - Modify this stream
24 RESULT
26 NOTES
28 EXAMPLE
30 BUGS
32 SEE ALSO
33 fopen(), fwrite(), fseek()
35 INTERNALS
37 ******************************************************************************/
39 fseek (stream, 0L, SEEK_SET);
40 clearerr (stream);
41 } /* rewind */