]> pd.if.org Git - pdclib/blob - functions/stdio/rewind.c
Merged branch stdio_rewrite back into trunk.
[pdclib] / functions / stdio / rewind.c
1 /* $Id$ */
2
3 /* rewind( FILE * )
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #include <stdio.h>
10
11 #ifndef REGTEST
12
13 void rewind( struct _PDCLIB_file_t * stream )
14 {
15     stream->status &= ~ _PDCLIB_ERRORFLAG;
16     fseek( stream, 0L, SEEK_SET );
17 }
18
19 #endif
20
21 #ifdef TEST
22 #include <_PDCLIB_test.h>
23
24 int main( void )
25 {
26     /* Testing covered by ftell.c */
27     return TEST_RESULTS;
28 }
29
30 #endif