In the C Programming Language, the fclose characteristic closes a stream pointed to by means of stream. The fclose function flushes any unwritten statistics in the stream’s buffer.
The syntax for the fclose characteristic in the C Language is:
int fclose(FILE *stream);
Parameters or Arguments
The stream to close.
The fclose characteristic returns zero if profitable or EOF if an error used to be encountered.
In the C Language, the required header for the fclose function is:
In the C Language, the fclose feature can be used in the following versions:
Other C functions that are noteworthy when dealing with the fclose function:
fflush feature fopen function freopen characteristic