kolibrios-fun/programs/develop/metcc/trunk/libc/file/fclose.c
Andrey Halyavin (halyavin) 51d395d0cc initial import of metcc project
git-svn-id: svn://kolibrios.org@145 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-09-07 14:14:53 +00:00

10 lines
198 B
C

#include "stdio.h"
#include "string.h"
int fclose(FILE* file)
{
int res;
res=_msys_write_file(file->filename,file->filesize,file->buffer);
free(file->buffer);
free(file);
return res;
}