]> pd.if.org Git - pdclib/blobdiff - functions/stdio/rewind.c
Removed SVN keyword tags.
[pdclib] / functions / stdio / rewind.c
index 0a19155b5820428acd62c40996d8aa8b8ceaf35c..e7f2aac379304669829c129a444f72a8af4fa5ff 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* rewind( FILE * )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -9,18 +7,19 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+#include <_PDCLIB_io.h>
 
-void rewind_unlocked( struct _PDCLIB_file_t * stream )
+void _PDCLIB_rewind_unlocked( FILE * stream )
 {
     stream->status &= ~ _PDCLIB_ERRORFLAG;
-    fseek_unlocked( stream, 0L, SEEK_SET );
+    _PDCLIB_fseek_unlocked( stream, 0L, SEEK_SET );
 }
 
-void rewind( struct _PDCLIB_file_t * stream )
+void rewind( FILE * stream )
 {
-    flockfile(stream);
-    rewind_unlocked(stream);
-    funlockfile(stream);
+    _PDCLIB_flockfile(stream);
+    _PDCLIB_rewind_unlocked(stream);
+    _PDCLIB_funlockfile(stream);
 }
 
 #endif