home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / fclose.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  371 b   |  26 lines

  1. @node fclose, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. int fclose(FILE *file);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function closes the given @var{file}.
  13.  
  14. @subheading Return Value
  15.  
  16. Zero on success, else @code{EOF}. 
  17.  
  18. @subheading Example
  19.  
  20. @example
  21. FILE *f = fopen("data", "r");
  22. fprintf(f, "Hello\n");
  23. fclose(f);
  24. @end example
  25.  
  26.