⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fflush.html

📁 unix 下的C开发手册,还用详细的例程。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>fflush</title></head><body bgcolor=white><center><font size=2>The Single UNIX &reg; Specification, Version 2<br>Copyright &copy; 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_005_023">&nbsp;</a>NAME</h4><blockquote>fflush - flush a stream</blockquote><h4><a name = "tag_000_005_024">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;<a href="stdio.h.html">stdio.h</a>&gt;int fflush(FILE *<i>stream</i>);</code></pre></blockquote><h4><a name = "tag_000_005_025">&nbsp;</a>DESCRIPTION</h4><blockquote>If<i>stream</i>points to an output stream or an update stream in which the mostrecent operation was not input,<i>fflush()</i>causes any unwritten data for that stream to be written to the file, and the<i>st_ctime</i>and<i>st_mtime</i>fields of the underlying file are marked for update.<p>If<i>stream</i>is a null pointer,<i>fflush()</i>performs this flushing action on all streams for whichthe behaviour is defined above.</blockquote><h4><a name = "tag_000_005_026">&nbsp;</a>RETURN VALUE</h4><blockquote>Upon successful completion,<i>fflush()</i>returns 0.  Otherwise, it returns EOF and sets<i>errno</i>to indicate the error.</blockquote><h4><a name = "tag_000_005_027">&nbsp;</a>ERRORS</h4><blockquote>The<i>fflush()</i>function will fail if:<dl compact><dt>[EAGAIN]<dd>The O_NONBLOCK flag is set for the file descriptor underlying<i>stream</i>and the process would be delayed in the write operation.<dt>[EBADF]<dd>The file descriptor underlying<i>stream</i>is not valid.<dt>[EFBIG]<dd>An attempt was made to write a file that exceeds the maximum file sizeor the process' file size limit.<dt>[EFBIG]<dd>The file is a regular file and an attempt was made to write at or beyondthe offset maximum associated with the corresponding stream.<dt>[EINTR]<dd>The<i>fflush()</i>function was interrupted by a signal.<dt>[EIO]<dd>The process is a memberof a background process group attempting to write to itscontrolling terminal, TOSTOP is set, the process is neither ignoring norblocking SIGTTOU and the process group of the process isorphaned.This error may also be returned under implementation-dependent conditions.<dt>[ENOSPC]<dd>There was no free space remaining on the device containing the file.<dt>[EPIPE]<dd>An attempt is made to write to a pipe or FIFO that is not openfor reading by any process.A SIGPIPE signal will also be sent to the thread.</dl><p>The<i>fflush()</i>function may fail if:<dl compact><dt>[ENXIO]<dd>A request was made of a non-existent device, or the request wasoutside the capabilities of the device.</dl></blockquote><h4><a name = "tag_000_005_028">&nbsp;</a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_005_029">&nbsp;</a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_005_030">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_005_031">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="getrlimit.html">getrlimit()</a></i>,<i><a href="ulimit.html">ulimit()</a></i>,<i><a href="stdio.h.html">&lt;stdio.h&gt;</a></i>.</blockquote><h4>DERIVATION</h4><blockquote>Derived from Issue 1 of the SVID.</blockquote><hr size=2 noshade><center><font size=2>UNIX &reg; is a registered Trademark of The Open Group.<br>Copyright &copy; 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>

⌨️ 快捷键说明

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