Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ flushall(DOS) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fclose(S)



     FLUSHALL(DOS)            XENIX System V             FLUSHALL(DOS)



     Name
          flushall - Flushes all output buffers.

     Syntax
          #include <stdio.h>

          int flushall ( );

     Description
          The function flushall causes the contents of all buffers
          associated with open output streams to be written to the
          associated files.  All streams remain open after the call.

     Return Value
          flushall returns the number of open streams (input and
          output). There is no error return.

     See Also
          fclose(S)

     Example
          #include <stdio.h>

          int numflushed;
            .
            .
            .

          /* The following statement resolves any pending i/o on **
          all streams.  */

          numflushed = flushall ( );

     Notes
          Buffers are automatically flushed when they are full, when
          streams are closed, or when a program terminates normally
          without closing streams.

          This call must be compiled with the -dos flag.
















     Page 1                                           (printed 8/7/87)



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