Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fclose(3S) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



FCLOSE(3S)      DOMAIN/IX Reference Manual (SYS5)      FCLOSE(3S)



NAME
     fclose, fflush - close or flush a stream

USAGE
     #include <stdio.h>

     int fclose (stream)
     FILE *stream;

     int fflush (stream)
     FILE *stream;

DESCRIPTION
     Fclose writes out any data that has been buffered for the
     named stream, then closes the stream.

     Calling exit(2) causes fclose to be performed on all open
     files.

     Fflush writes out any data that has been buffered for the
     named stream.  The stream remains open.

DIAGNOSTICS
     These functions return zero for success, and EOF if any
     error is detected.

RELATED INFORMATION
     close(2), exit(2), fopen(3S), setbuf(3S).



























Printed 5/10/85                                          FCLOSE-1



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