fclose() STDIO Function fclose() Close a stream #include <stdio.h> int fclose(fp) FILE *fp; fclose closes the stream fp. It calls fflush on the given fp, closes the associated file, and releases any allocated buffer. The function exit calls fclose for open streams. ***** Example ***** For examples of how to use this function, see the entries for fopen and fseek. ***** See Also ***** STDIO ***** Diagnostics ***** fclose returns EOF if an error occurs. COHERENT Lexicon Page 1