Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

open(2)

fopen(3S)



FERROR(3S)               DOMAIN/IX SYS5                FERROR(3S)



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

USAGE
     #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 non-zero when an I/O error occurs in the
     course of reading from or writing to stream.  Otherwise, the
     function returns zero.

     Feof returns non-zero when it detects an EOF while reading
     from stream.  Otherwise, it returns zero.

     Clearerr resets the error indicator and EOF indicator to
     zero on the named stream.

     Fileno returns the file descriptor associated with the named
     stream; see open(2).

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

RELATED INFORMATION
     open(2), fopen(3S).













Printed 12/4/86                                          FERROR-1





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