FCLOSE(3S) COMMAND REFERENCE FCLOSE(3S)
NAME
fclose, fflush - close or flush a stream
SYNOPSIS
#include <stdio.h>
fclose(stream)
FILE *stream;
fflush(stream)
FILE *stream;
DESCRIPTION
Fclose causes any buffers for the named stream to be
emptied, and the file to be closed. Buffers allocated by
the standard input/output system are freed.
Fclose is performed automatically upon calling exit(3c).
Fflush causes any buffered data for the named output stream
to be written to that file. The stream remains open.
DIAGNOSTICS
These routines return 0 on successful completion and EOF if
buffered data cannot be transferred to the file.
SEE ALSO
close(2), exit(3c), fopen(3s), setbuf(3s).
Printed 10/17/86 1
%%index%%
na:72,76;
sy:148,576;
de:724,581;
di:1305,222;
se:1527,177;
%%index%%000000000093