fclose

Example: fcloseInput-Output Functions

Closes a file.

int fclose( FILE *file_pointer);

file_pointer A pointer to the file to close.

Return Values

If the stream is successfully closed, returns 0. If an error occurs, returns EOF.

For fclose details, refer to your C language documentation.