Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > fclose


Example: fclose Input-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.