Subversion Repositories Kolibri OS

Rev

Rev 6433 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6433 Rev 7172
1
#include 
1
#include 
2
#include 
2
#include 
3
#include 
3
#include 
4
 
4
 
5
int fclose(FILE* file)
5
int fclose(FILE* file)
6
{
6
{
7
    if(!file)
7
    if(!file)
8
    {
8
    {
9
        errno = E_INVALIDPTR;
9
        errno = E_INVALIDPTR;
10
        return EOF;
10
        return EOF;
11
    }
11
    }
12
 
12
 
13
    if(file->buffer)
13
    if(file->buffer)
14
        free(file->buffer);
14
        free(file->buffer);
-
 
15
    if(file->filename)
-
 
16
        free(file->filename);
15
	free(file);
17
	free(file);
16
 
18
 
17
	return 0;
19
	return 0;
18
}
20
}