Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ feof(3S) — SunOS 3.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fopen(3S)

open(2V)

FERROR(3S)  —  STANDARD I/O LIBRARY

NAME

ferror, feof, clearerr, fileno − stream status inquiries

SYNOPSIS

#include <stdio.h>

ferror(stream)
FILE ∗stream;

feof(stream)
FILE ∗stream;

clearerr(stream)
FILE ∗stream;

fileno(stream)
FILE ∗stream;

DESCRIPTION

ferror returns non-zero when an error has occurred reading from or writing to the named stream, otherwise zero.  Unless cleared by clearerr, the error indication lasts until the stream is closed.

feof returns non-zero when EOF has previously been detected reading the named input stream, otherwise zero.  Unless cleared by clearerr, the end-of-file indication lasts until the stream is closed.

clearerr resets the error indication and EOF indication to zero on the named stream.

fileno returns the integer file descriptor associated with the stream; see open(2V).

NOTE

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

SEE ALSO

fopen(3S), open(2V)

Sun Release 3.2  —  Last change: 17 July 1986

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