[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    ferror(3S) manual page Table of Contents

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);

MT-Level

MT-Safe

Description

ferror() returns non-zero when an error has previously occurred reading from or writing to the named stream (see intro(3) ), 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) , intro(3) , fopen(3S) , stdio(3S)


Table of Contents