Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

open(2)

fopen(3S)

stdio(3S)

FERROR(3S)                           SysV                           FERROR(3S)



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

SYNOPSIS
     #include <stdio.h>

     int ferror (stream)
     FILE *stream;

     int feof (stream)
     FILE *stream;

     void clearerr (stream)
     FILE *stream;

     int fileno (stream)
     FILE *stream;

DESCRIPTION
     ferror returns nonzero when an I/O error has previously occurred reading
     from or writing to the named stream, otherwise zero.

     feof returns nonzero 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).

NOTES
     All these functions are implemented as macros; they cannot be declared or
     redeclared.

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026