]> pd.if.org Git - pdclib/blobdiff - functions/stdio/rewind.c
Whitespace cleanups.
[pdclib] / functions / stdio / rewind.c
index 543e2849a740df13d89c35449e22667b6eaedd2d..a449b7d03cd55945c27523929fa2a1502dbc0dfa 100644 (file)
@@ -1,6 +1,4 @@
-/* $Id$ */
-
-/* frewind( FILE * )
+/* rewind( FILE * )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
 
 void rewind( struct _PDCLIB_file_t * stream )
 {
-    /* TODO: Implement. */
-    return;
+    stream->status &= ~ _PDCLIB_ERRORFLAG;
+    fseek( stream, 0L, SEEK_SET );
 }
 
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+
+#include "_PDCLIB_test.h"
 
 int main( void )
 {
-    TESTCASE( NO_TESTDRIVER );
+    /* Testing covered by ftell.c */
     return TEST_RESULTS;
 }