Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. int fclose(FILE* file)
  6. {
  7.     if(!file)
  8.     {
  9.         errno = E_INVALIDPTR;
  10.         return EOF;
  11.     }
  12.  
  13.     if(file->buffer)
  14.         free(file->buffer);
  15.         free(file);
  16.  
  17.         return 0;
  18. }
  19.