fclose¶
Closes a file opened by fopen
.
Synopsis¶
fclose (file)
Required Arguments¶
- FILE
file
(Input/Output) - A FILE structure returned from
fopen
.
Return Value¶
The return value is zero if the file is successfully closed. If there is an error, the return value is negative 1.
Description¶
The function fclose
is a wrapper around the standard C runtime function
fclose
. It is used to close files opened with fopen
.