Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ferror(S) — System V/386 Software Development System 3.2.2b

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     FERROR(S)                 UNIX System V                 FERROR(S)



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

     Syntax
          #include <stdio.h>

          int ferror (stream)
          FILE *stream;

          int feof (stream)
          FILE *stream;

          void clearerr (stream)
          FILE *stream;

          int fileno (stream)
          FILE *stream;

     Description
          The ferror function returns non-zero when an I/O error has
          previously occurred reading from or writing to the named
          stream, otherwise zero.

          feof returns non-zero 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(S).

     See Also
          open(S), fopen(S), stdio(S)

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

     Standards Conformance
          clearerr, feof and ferror are conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          The X/Open Portability Guide II of January 1987;
          ANSI X3.159-198X C Language Draft Standard, May 13,
          1988;
          IEEE POSIX Std 1003.1-1988 with C Standard Language-
          Dependent System Support;
          and NIST FIPS 151-1.

          fileno is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          The X/Open Portability Guide II of January 1987;
          IEEE POSIX Std 1003.1-1988 with C Standard Language-
          Dependent System Support;
          and NIST FIPS 151-1.

                                             (printed 6/20/89)



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