Declaration:
int fclose(unsigned long stream);
Description
Closes a stream.
fclose closes the specified stream. All buffers associated with the stream are flushed before closing. The system-allocated buffers are freed upon closing.
Returned value
fclose returns 0 on success. It will return EOF, if any errors are detected.
|