.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" This code is derived from software contributed to Berkeley by
.\" Chris Torek and the American National Standards Committee X3,
.\" on Information Processing Systems.
.\" %sccs.include.redist.man%
.\" @(#)fclose.3 8.1 (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