Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fclose(3S) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

close(2)

exit(2)

fopen(3S)

setbuf(3S)

stdio(3S)



FCLOSE(3S-SysV)     RISC/os Reference Manual      FCLOSE(3S-SysV)



NAME
     fclose, fflush - close or flush a stream

SYNOPSIS
     #include <bsd/sys/types.h>

     #include <stdio.h>

     int fclose (stream)
     FILE *stream;

     int fflush (stream)
     FILE *stream;

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

     fclose is performed automatically for all open files upon
     calling exit(2).

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

SEE ALSO
     close(2), exit(2), fopen(3S), setbuf(3S), stdio(3S).

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.
























                         Printed 1/15/91                   Page 1



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