.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" %sccs.include.redist.man%
.\" @(#)fclose.3 6.6 (Berkeley) %G%
.Fn fclose "FILE *stream"
from its underlying file or set of functions.
If the stream was being used for output, any buffered data is written
Upon successful completion 0 is returned.
is returned and the global variable
is set to indicate the error.
In either case no further access to the stream is possible.
for any of the errors specified for the routines