<!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_input_pending</TITLE> <LINK HREF="cref-117.html" REL=next> <LINK HREF="cref-115.html" REL=previous> <LINK HREF="cref.html#toc116" REL=contents> </HEAD> <BODY> <A HREF="cref-117.html">Next</A> <A HREF="cref-115.html">Previous</A> <A HREF="cref.html#toc116">Contents</A> <HR> <H2><A NAME="SLang_input_pending"></A> <A NAME="s116">116. <B>SLang_input_pending</B></A></H2> <P> <DL> <DT><B> Synopsis </B><DD><P>Check to see if input is pending <DT><B> Usage </B><DD><P><CODE>int SLang_input_pending (int tsecs)</CODE> <DT><B> Description </B><DD><P><CODE>SLang_input_pending</CODE> may be used to see if an input character is available to be read without causing <CODE>SLang_getkey</CODE> to block. It will wait up to <CODE>tsecs</CODE> tenths of a second if no characters are immediately available for reading. If <CODE>tsecs</CODE> is less than zero, then <CODE>SLang_input_pending</CODE> will wait <CODE>-tsecs</CODE> milliseconds for input, otherwise <CODE>tsecs</CODE> represents <CODE>1/10</CODE> of a second intervals. <DT><B> Notes </B><DD><P>Not all systems support millisecond resolution. <DT><B> See Also </B><DD><P><CODE>SLang_getkey</CODE> </DL> <P> <P> <P> <HR> <A HREF="cref-117.html">Next</A> <A HREF="cref-115.html">Previous</A> <A HREF="cref.html#toc116">Contents</A> </BODY> </HTML>