English pages are provided only to compare translations to original pages,
better looking pages can be browsed
at the Linux man-pages official site.
Linux Programmer's Manual (3)
fclose - close a stream
int fclose(FILE *fp);
function flushes the stream pointed to by
(writing any buffered output data using
and closes the underlying file descriptor.
Upon successful completion 0 is returned.
is returned and
is set to indicate the error.
In either case any further access
(including another call to
to the stream results in undefined behavior.
The file descriptor underlying
is not valid.
function may also fail and set
for any of the errors specified for the routines
only flushes the user-space buffers provided by the
To ensure that the data is physically stored
on disk the kernel buffers must be flushed too, for example, with
This page is part of release 3.66 of the Linux
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:43:00 GMT, July 12, 2014