FCLOSE(S) XENIX System V FCLOSE(S)
Name
fclose, fflush - Closes or flushes a stream.
Syntax
#include <stdio.h>
int fclose (stream)
FILE *stream;
int 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(S).
fflush causes any buffered data for the named output stream
to be written to that file. The stream remains open.
These functions return 0 for success, and EOF if any errors
were detected.
See Also
close(S), fopen(S), setbuf(S)
Page 1 (printed 8/7/87)