<!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_pop_complex</TITLE> <LINK HREF="cref-74.html" REL=next> <LINK HREF="cref-72.html" REL=previous> <LINK HREF="cref.html#toc73" REL=contents> </HEAD> <BODY> <A HREF="cref-74.html">Next</A> <A HREF="cref-72.html">Previous</A> <A HREF="cref.html#toc73">Contents</A> <HR> <H2><A NAME="SLang_pop_complex"></A> <A NAME="s73">73. <B>SLang_pop_complex</B></A></H2> <P> <DL> <DT><B> Synopsis </B><DD><P>Pop a complex number from the stack <DT><B> Usage </B><DD><P><CODE>int SLang_pop_complex (double *re, double *im)</CODE> <DT><B> Description </B><DD><P><CODE>SLang_pop_complex</CODE> pops a complex number from the stack and returns it via the parameters <CODE>re</CODE> and <CODE>im</CODE> as the real and imaginary parts of the complex number, respectively. This function automatically converts objects of type <CODE>SLANG_DOUBLE_TYPE</CODE> and <CODE>SLANG_INT_TYPE</CODE> to <CODE>SLANG_COMPLEX_TYPE</CODE>, if necessary. It returns zero upon sucess, or <CODE>-1</CODE> upon error setting <CODE>SLang_Error</CODE> accordingly. <DT><B> See Also </B><DD><P><CODE>SLang_pop_integer, SLang_pop_double, SLang_push_complex</CODE> </DL> <P> <P> <P> <HR> <A HREF="cref-74.html">Next</A> <A HREF="cref-72.html">Previous</A> <A HREF="cref.html#toc73">Contents</A> </BODY> </HTML>