📄 fclose.3
字号:
.\" @(#)fclose.3s 6.1 (Berkeley) 5/15/85.\".TH FCLOSE 3 "May 15, 1985".AT 3.SH NAMEfclose, fflush \- close or flush a stream.SH SYNOPSIS.nf.ft B#include <stdio.h>int fclose(FILE *\fIstream\fP)int fflush(FILE *\fIstream\fP).ft R.fi.SH DESCRIPTION.B Fclosecauses any buffers for the named.I streamto be emptied, and the file to be closed.Buffers allocated by the standard input/output systemare freed..PP.B Fcloseis performed automatically uponcalling.BR exit (3)..PP.B Fflushcauses any buffered data for the named output.I streamto be written to that file.The stream remains open..SH "SEE ALSO".BR close (2),.BR fopen (3),.BR setbuf (3)..SH DIAGNOSTICSThese routines return.SM.B EOFif.I streamis not associated with an output file, orif buffered data cannot be transferred to that file.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -