<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE> {The S-lang C Library Reference}: SLang_ungetkey</TITLE> <LINK HREF="cref-115.html" REL=next> <LINK HREF="cref-113.html" REL=previous> <LINK HREF="cref.html#toc114" REL=contents> </HEAD> <BODY> <A HREF="cref-115.html">Next</A> <A HREF="cref-113.html">Previous</A> <A HREF="cref.html#toc114">Contents</A> <HR> <H2><A NAME="SLang_ungetkey"></A> <A NAME="s114">114. <B>SLang_ungetkey</B></A></H2> <P> <DL> <DT><B> Synopsis </B><DD><P>Push a character back onto the input buffer <DT><B> Usage </B><DD><P><CODE>int SLang_ungetkey (unsigned char ch)</CODE> <DT><B> Description </B><DD><P><CODE>SLang_ungetkey</CODE> pushes the character <CODE>ch</CODE> back onto the <CODE>SLgetkey</CODE> input stream. Upon success, it returns zero, otherwise it returns <CODE>1</CODE>. <DT><B> Example </B><DD><P>This function is implemented as: <BLOCKQUOTE><CODE> <PRE> int SLang_ungetkey (unsigned char ch) { return SLang_ungetkey_string(&ch, 1); } </PRE> </CODE></BLOCKQUOTE> <DT><B> See Also </B><DD><P><CODE>SLang_getkey, SLang_ungetkey_string</CODE> </DL> <P> <P> <P> <HR> <A HREF="cref-115.html">Next</A> <A HREF="cref-113.html">Previous</A> <A HREF="cref.html#toc114">Contents</A> </BODY> </HTML>