Write the syntax and explain the purpose of the following functions : 2m Dec2005
(ii) Fclose( )
The C library function int fclose(FILE *stream) closes the stream. All buffers are flushed.
Following is the declaration for fclose() function.
Parametersint fclose(FILE *stream)
- stream — This is the pointer to a FILE object that specifies the stream to be closed.
This method returns zero if the stream is successfully closed.On failure, EOF is returned.