NAME

ferror, feof, clearerr - stream status inquiries

SYNOPSIS

#include <stdio.h>

int ferror( FILE *stream );
int feof( FILE *stream );
void clearerr( FILE *stream );

DESCRIPTION

ferror() tests the error indicator for the stream pointed to by stream.

feof() tests the end-of-file indicator for the stream pointed to by stream.

clearerr() resets the error indicator and EOF indicator to zero on the named stream.

RETURN VALUE

ferror() returns non-zero when an error has previously occurred reading 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() does not return a value.

ERRORS

No errors are defined.

SEE ALSO

open(), fopen()


< Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2011 >