File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / man / man3 / fclose.3s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

.TH FCLOSE 3S  "19 January 1983"
.SH NAME
fclose, fflush \- close or flush a stream
.SH SYNOPSIS
.B #include <stdio.h>
.PP
.B fclose(stream)
.br
.SM
.B FILE
.B *stream;
.PP
.B fflush(stream)
.br
.SM
.B FILE
.B *stream;
.SH DESCRIPTION
.I Fclose
causes any buffers for the named
.I stream
to be emptied, and the file to be closed.
Buffers allocated by the standard input/output system
are freed.
.PP
.I Fclose
is performed automatically upon
calling
.IR  exit (3).
.PP
.I Fflush
causes any buffered data for the named output
.I stream
to be written to that file.
The stream remains open.
.SH "SEE ALSO"
close(2),
fopen(3S),
setbuf(3S)
.SH DIAGNOSTICS
These routines return
.SM
.B EOF
if
.I stream
is not associated with an output file, or
if buffered data cannot be transferred to that file.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.