2.12.3.2 fclose

Declaration:

int fclose(FILE *stream);

Closes the stream. All buffers are flushed.

If successful, it returns zero. On error it returns EOF.