libc.info: fclose

Go forward to feof
Go backward to clearerr
Go up to Stdio
Go to the top op libc

`fclose'--close a file

*Synopsis*
     #include <stdio.h>
     int fclose(FILE *FP);
   *Description*
If the file or stream identified by FP is open, `fclose' closes it,
after first ensuring that any pending data is written (by calling
`fflush(FP)').
*Returns*
`fclose' returns `0' if successful (including when FP is `NULL' or not
an open file); otherwise, it returns `EOF'.
*Portability*
`fclose' is required by ANSI C.
   Required OS subroutines: `close', `fstat', `isatty', `lseek',
`read', `sbrk', `write'.