kolibrios-fun/programs/develop/metcc/trunk/libc/file/fflush.c

7 lines
186 B
C
Raw Normal View History

#include "stdio.h"
int fflush(FILE* file)
{
if ((file->mode & 3)==FILE_OPEN_READ)
return 0;
return _msys_file_write(file->filename,file->filesize,file->buffer) ? EOF : 0;
}