X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffseek.c;h=ca0017cacfc02f1fbaaf259be15fd0ca90f1c4a1;hb=566bfcc6924abd9fccbd97fa8207711e899dd0bc;hp=f33f250938a0e1cdaaa7fddbe6f971b2e8d52b3a;hpb=a5d6aa23d413d22e6eed9c9d813b063f70cddb16;p=pdclib diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c index f33f250..ca0017c 100644 --- a/functions/stdio/fseek.c +++ b/functions/stdio/fseek.c @@ -12,6 +12,10 @@ int fseek( struct _PDCLIB_file_t * stream, long int offset, int whence ) { + if ( stream->status & _PDCLIB_WROTELAST ) + { + fflush( stream ); + } /* TODO: Implement. */ return 0; }