Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fopen(3S)

open(2)

FERROR(3S)                           BSD                            FERROR(3S)



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

SYNOPSIS
     #include <stdio.h>

     feof(stream)
     FILE *stream;

     ferror(stream)
     FILE *stream

     clearerr(stream)
     FILE *stream

     fileno(stream)
     FILE *stream;

DESCRIPTION
     feof returns nonzero when end of file is read on the named input stream;
     otherwise 0 is returned.  Unless cleared by clearerr, the end-of-file
     indication lasts until the stream is closed.

     ferror returns nonzero when an error has occurred reading or writing the
     named stream; otherwise, it returns 0.  Unless cleared by clearerr, the
     error indication lasts until the stream is closed.

     clearerr resets the error and end-of-file indicators on the named stream.

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

     Currently all of these functions are implemented as macros; they cannot
     be redeclared.

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

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