X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Frewind.c;fp=functions%2Fstdio%2Frewind.c;h=d97e4e21ac289db2e2ae8e3a60555350dedf29f7;hb=e170cf268e94b1ea530804c3e9844ae443b49156;hp=543e2849a740df13d89c35449e22667b6eaedd2d;hpb=95ed7ad74247ed6a01405bd689833d67f23a42cf;p=pdclib.old diff --git a/functions/stdio/rewind.c b/functions/stdio/rewind.c index 543e284..d97e4e2 100644 --- a/functions/stdio/rewind.c +++ b/functions/stdio/rewind.c @@ -12,6 +12,10 @@ void rewind( struct _PDCLIB_file_t * stream ) { + if ( stream->status & _PDCLIB_WROTELAST ) + { + fflush( stream ); + } /* TODO: Implement. */ return; }