Query: fclose
OS: v7
Section: 3s
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FCLOSE(3S) FCLOSE(3S)NAMEfclose, fflush - close or flush a streamSYNOPSIS#include <stdio.h> fclose(stream) FILE *stream; fflush(stream) FILE *stream;DESCRIPTIONFclose causes any buffers for the named stream to be emptied, and the file to be closed. Buffers allocated by the standard input/output system are freed. Fclose is performed automatically upon calling exit(2). Fflush causes any buffered data for the named output stream to be written to that file. The stream remains open.SEE ALSOclose(2), fopen(3), setbuf(3)DIAGNOSTICSThese routines return EOF if stream is not associated with an output file, or if buffered data cannot be transferred to that file. FCLOSE(3S)
Related Man Pages |
---|
fclose(3) - redhat |
fclose(3) - centos |
fcloseall(3) - freebsd |
fclose(3) - opendarwin |
fclose(3) - plan9 |
Similar Topics in the Unix Linux Community |
---|
getline() and fclose() |