FERROR(S) XENIX System V FERROR(S)
Name
ferror, feof, clearerr, fileno - Determines stream status.
Syntax
#include <stdio.h>
int feof (stream)
FILE *stream;
int ferror (stream)
FILE *stream
clearerr (stream)
FILE *stream
int fileno(stream)
FILE *stream;
Description
feof returns nonzero when end-of-file is read on the named
input stream, otherwise zero.
ferror returns nonzero when an error has occurred reading or
writing the named stream, otherwise zero. Unless cleared by
clearerr, the error indication lasts until the stream is
closed.
clearerr resets the error indication on the named stream.
fileno returns the integer file descriptor associated with
the stream, see open(S).
feof, ferror, and fileno are implemented as macros; they
cannot be redeclared.
See Also
open(S), fopen(S)
Page 1 (printed 8/7/87)