]> pd.if.org Git - pdclib/blobdiff - functions/stdio/rewind.c
Intermediate stdio work.
[pdclib] / functions / stdio / rewind.c
index 543e2849a740df13d89c35449e22667b6eaedd2d..d97e4e21ac289db2e2ae8e3a60555350dedf29f7 100644 (file)
 
 void rewind( struct _PDCLIB_file_t * stream )
 {
+    if ( stream->status & _PDCLIB_WROTELAST )
+    {
+        fflush( stream );
+    }
     /* TODO: Implement. */
     return;
 }