
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>fclose</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FCLOSE
. Summary
fclose(int <fh>);
. Description
The fclose functions closes the file represented by the file handle
<fh>, which must previously been opened for reading or writing with
the fopen function. If the file was opened for writing, any data
which is still buffered and waiting to be written out to disk is
written before the file is closed.
. Return Value
A return value of -1 indicates a problem closing the file.
. Example
int f;
f = fopen("test.dat", "w");
...
fclose(f);
See Also: fopen
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson