2006-09-07 16:14:53 +02:00
|
|
|
#include "stdio.h"
|
|
|
|
#include "string.h"
|
|
|
|
int fclose(FILE* file)
|
|
|
|
{
|
|
|
|
int res;
|
2006-12-24 01:14:30 +01:00
|
|
|
res=_msys_write_file(file->filename, 0, file->filesize, file->buffer);
|
2006-09-07 16:14:53 +02:00
|
|
|
free(file->buffer);
|
2006-12-24 02:01:00 +01:00
|
|
|
free(file->filename);
|
2006-09-07 16:14:53 +02:00
|
|
|
free(file);
|
|
|
|
return res;
|
|
|
|
}
|