unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (4.2BSD)
Page:
Section:
Apropos / Subsearch:
optional field

FERROR(3S)                                                          FERROR(3S)



NAME
       ferror, feof, clearerr, fileno - stream status inquiries

SYNOPSIS
       #include <&lt;stdio.h>&gt;

       feof(stream)
       FILE *stream;

       ferror(stream)
       FILE *stream

       clearerr(stream)
       FILE *stream

       fileno(stream)
       FILE *stream;

DESCRIPTION
       Feof  returns  non-zero  when  end  of  file is read on the named input
       stream, otherwise zero.

       Ferror returns non-zero 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.

       Clrerr resets the error indication on the named stream.

       Fileno returns the integer file descriptor associated with the  stream,
       see open(2).

       These functions are implemented as macros; they cannot be redeclared.

SEE ALSO
       fopen(3S), open(2)



4th Berkeley Distribution       19 January 1983                     FERROR(3S)