fclose.3s

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3S 代码 · 共 52 行

3S
52
字号
.\" SCCSID: @(#)fclose.3s	8.1	9/11/90.TH fclose 3s .SH Namefclose, fflush \- close or flush a stream.SH Syntax#include <stdio.h>.PPfclose\^(\fIstream\fP).brFILE *\fIstream\fP;.PPfflush\^(\fIstream\fP).brFILE *\fIstream\fP;.SH Description.NXR "fclose subroutine".NXR "fflush subroutine".NXR "stream" "closing".NXR "stream" "flushing"The.PN fcloseroutine causes any buffers for the named.I streamto be emptied, and the file to be closed.Buffers allocated by the standard input/output systemare freed.  The.PN fcloseroutine is performed automatically uponcalling.PN exit ..PPThe.PN fflushroutine causes any buffered data for the named output.I streamto be written to that file.  If .I streamis NULL, all open output streams are flushed.  The stream remains open..SH DiagnosticsThese functions return EOF if buffered data cannot be transferred to anoutput stream..SH EnvironmentIf not called in POSIX mode, these functions return EOF if .I streamis not associated with an output file.  In POSIX mode, if.I streamis associated with an input file, the file pointer is positionedfollowing the last byte read from that.I stream..SH See Alsoclose(2), fopen(3s), setbuf(3s)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?