getwin.html

来自「unix 下的C开发手册,还用详细的例程。」· HTML 代码 · 共 63 行

HTML
63
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>getwin</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_000_454">&nbsp;</a>NAME</h4><blockquote>getwin, putwin - dump window to, and reload window from, a file</blockquote><h4><a name = "tag_000_000_455">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;<a href="curses.h.html">curses.h</a>&gt;WINDOW *getwin(FILE *<i>filep</i>);int putwin(WINDOW *<i>win</i>, FILE *<i>filep</i>);</code></pre></blockquote><h4><a name = "tag_000_000_456">&nbsp;</a>DESCRIPTION</h4><blockquote>The<i>getwin()</i>function reads window-related data stored in the file by<i><a href="putwin.html">putwin()</a></i>.The function then creates and initialises a new window using that data.<p>The<i><a href="putwin.html">putwin()</a></i>function writes all data associated with <i>win</i> into the<i>stdio</i>stream to which<i>filep</i> points, using an unspecified format.  This information can beretrieved later using<i>getwin()</i>.</blockquote><h4><a name = "tag_000_000_457">&nbsp;</a>RETURN VALUE</h4><blockquote>Upon successful completion,<i>getwin()</i>returns a pointer to the window it created.  Otherwise, it returns a nullpointer.<p>Upon successful completion,<i><a href="putwin.html">putwin()</a></i>returns OK.  Otherwise, it returns ERR.</blockquote><h4><a name = "tag_000_000_458">&nbsp;</a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_000_000_459">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="scr_dump.html">scr_dump()</a></i>,<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>.</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 + =
减小字号Ctrl + -
显示快捷键?