Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     FCLOSE(S)                 UNIX System V                 FCLOSE(S)



     Name
          fclose, fflush - close or flush a stream

     Syntax
          #include <stdio.h>

          int fclose (stream)
          FILE *stream;

          int fflush (stream)
          FILE *stream;

     Description
          The fclose function causes any buffered data for the named
          stream to be written out, and the stream to be closed.

          The fclose function is performed automatically for all open
          files upon calling exit(S).

          fflush causes any buffered data for the named stream to be
          written to that file.  The stream remains open.

     See Also
          close(S), exit(S), fopen(S), setbuf(S), stdio(S)

     Diagnostics
          These functions return 0 for success and EOF if any error
          (such as trying to write to a file that has not been opened
          for writing) was detected.

     Standards Conformance
          fclose and fflush 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.

                                             (printed 6/20/89)



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