Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ferror(3s) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

open(2)

fopen(3s)

ferror(3s)

NAME

feof, ferror, clrerr, fileno − stream status inquiries

SYNTAX

#include <stdio.h>

int feof(stream)
FILE *stream;

int ferror(stream)
FILE *stream;

void clearerr(stream)
FILE *stream;

int fileno(stream)
FILE *stream;

DESCRIPTION

The feof macro returns non-zero when end of file is read on the named input stream and a zero otherwise. 

The ferror macro 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. 

The clrerr macro resets the error indication on the named stream. 

The fileno macro returns the integer file descriptor associated with the stream.  For further information, see open(2). 

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

SEE ALSO

open(2), fopen(3s)

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