Rev 647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
647 | andrew_pro | 1 | #include |
2 | #include |
||
3 | #include |
||
4 | |||
6433 | siemargl | 5 | int fclose(FILE* file) |
647 | andrew_pro | 6 | { |
6433 | siemargl | 7 | if(!file) |
8 | { |
||
9 | errno = E_INVALIDPTR; |
||
10 | return EOF; |
||
11 | } |
||
12 | |||
13 | if(file->buffer) |
||
14 | free(file->buffer); |
||
647 | andrew_pro | 15 | free(file); |
6433 | siemargl | 16 | |
17 | return 0; |
||
18 | } |