ferror(3S) ferror(3S)
NAME
ferror, feof, clearerr, fileno - stream status inquiries
SYNOPSIS
#include <stdio.h>
int ferror(FILE *Stream);
int feof(FILE *Stream);
void clearerr(FILE *Stream);
int fileno(FILE *Stream);
DESCRIPTION
ferror() returns non-zero when an error has previously occurred read-
ing from or writing to the named Stream, otherwise zero.
feof() returns non-zero when EOF has previously been detected reading
the named input Stream, otherwise zero.
clearerr() resets the error indicator and EOF indicator to zero on the
named Stream.
fileno() returns the integer file descriptor associated with the named
Stream [see open(2)].
SEE ALSO
open(2), fopen(3S), stdio(3S).
Page 1 Reliant UNIX 5.44 Printed 11/98