kolibrios/programs/develop/metcc/trunk/libc/file/fflush.c
victor 6ec45316ae -added long file names support
-small bug fix

git-svn-id: svn://kolibrios.org@244 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-12-24 00:14:30 +00:00

7 lines
191 B
C

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