Fclose Fflush flush or close a file #include <stdio.h> fclose FILE *fp fflush FILE *fp Description Placeholder Diagnostics EOF is returned if "fp" does not refer to an output file or there is an error writing to the file.