Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fclose(3S) — sys5 — Apollo Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

close(2)

fopen(3S)

setbuf(3S)



FCLOSE(3S)               DOMAIN/IX 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 forces any buffers for the named stream to be emp-
     tied, and the file to be closed.  Buffers allocated by the
     standard input/output system are freed.

     Fclose is performed automatically upon a call to exit(2).

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

     These functions return zero for success, and EOF if any
     errors were detected.

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

























Printed 12/4/86                                          FCLOSE-1





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