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