.\" 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%
.\" @(#)ferror.3 6.7 (Berkeley) %G%
.Nd check and reset stream status
.Fn clearerr "FILE *stream"
.Fn ferror "FILE *stream"
.Fn fileno "FILE *stream"
clears the end-of-file and error indicators for the stream pointed
tests the end-of-file indicator for the stream pointed to by
returning non-zero if it is set.
The end-of-file indicator can only be cleared by the function
tests the error indicator for the stream pointed to by
returning non-zero if it is set.
The error indicator can only be reset by the
and returns its integer desciptor.
These functions should not fail and do not set the external