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.
Syntax
The syntax for the fclose characteristic in the C Language is:
int fclose(FILE *stream);
Parameters or Arguments
stream
The stream to close.
Returns
The fclose characteristic returns zero if profitable or EOF if an error used to be encountered.
Required Header
In the C Language, the required header for the fclose function is:
#include <stdio.h>
Applies To
In the C Language, the fclose feature can be used in the following versions:
ANSI/ISO 9899-1990
See Also
Other C functions that are noteworthy when dealing with the fclose function:
fflush feature fopen function freopen characteristic
Leave a Review