ungetch.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>ungetch</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_002_001_108">&nbsp;</a>NAME</h4><blockquote>ungetch, unget_wch - push a character onto the input queue</blockquote><h4><a name = "tag_002_001_109">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;<a href="curses.h.html">curses.h</a>&gt;int ungetch(int <i>ch</i>);int unget_wch(const wchar_t <i>wch</i>);</code></pre></blockquote><h4><a name = "tag_002_001_110">&nbsp;</a>DESCRIPTION</h4><blockquote>The<i>ungetch()</i>function pushes the single-byte character <i>ch</i> onto the head of the inputqueue.<p>The<i>unget_wch()</i>function pushes the wide character <i>wch</i> onto the head of the input queue.<p>One character of push-back is guaranteed.The result of successive calls without an intervening call to<i><a href="getch.html">getch()</a></i>or<i><a href="get_wch.html">get_wch()</a></i>are unspecified.</blockquote><h4><a name = "tag_002_001_111">&nbsp;</a>RETURN VALUE</h4><blockquote>Upon successful completion, these functions return OK.Otherwise, they return ERR.</blockquote><h4><a name = "tag_002_001_112">&nbsp;</a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_002_001_113">&nbsp;</a>SEE ALSO</h4><blockquote><xref href=terminalinput><a href="intov.html#tag_001_005">Input Processing</a></xref>,<i><a href="getch.html">getch()</a></i>,<i><a href="get_wch.html">get_wch()</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 + -
显示快捷键?