<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLang_pop_integer</TITLE>
<LINK HREF="cref-69.html" REL=next>
<LINK HREF="cref-67.html" REL=previous>
<LINK HREF="cref.html#toc68" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-69.html">Next</A>
<A HREF="cref-67.html">Previous</A>
<A HREF="cref.html#toc68">Contents</A>
<HR>
<H2><A NAME="SLang_pop_integer"></A> <A NAME="s68">68. <B>SLang_pop_integer</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Pop an integer off the stack
<DT><B> Usage </B><DD><P><CODE>int SLang_pop_integer (int *i)</CODE>
<DT><B> Description </B><DD><P>The <CODE>SLang_pop_integer</CODE> function removes an integer from the
top of the interpreter's run-time stack and returns its value via
the pointer <CODE>i</CODE>.  If successful, it returns zero.  However, if
the top stack item is not of type <CODE>SLANG_INT_TYPE</CODE>, or the
stack is empty, the function will return <CODE>-1</CODE> and set
<CODE>SLang_Error</CODE> accordingly.
<DT><B> See Also </B><DD><P><CODE>SLang_push_integer, SLang_pop_double</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-69.html">Next</A>
<A HREF="cref-67.html">Previous</A>
<A HREF="cref.html#toc68">Contents</A>
</BODY>
</HTML>
