<!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_execute_function</TITLE> <LINK HREF="cref-82.html" REL=next> <LINK HREF="cref-80.html" REL=previous> <LINK HREF="cref.html#toc81" REL=contents> </HEAD> <BODY> <A HREF="cref-82.html">Next</A> <A HREF="cref-80.html">Previous</A> <A HREF="cref.html#toc81">Contents</A> <HR> <H2><A NAME="SLang_execute_function"></A> <A NAME="s81">81. <B>SLang_execute_function</B></A></H2> <P> <DL> <DT><B> Synopsis </B><DD><P>Execute a user or intrinsic function <DT><B> Usage </B><DD><P><CODE>int SLang_execute_function (char *fname)</CODE> <DT><B> Description </B><DD><P>This function may be used to execute either a user-defined function or an intrinisic function. The name of the function is specified by <CODE>fname</CODE>. It returns zero if <CODE>fname</CODE> is not defined, or <CODE>1</CODE> if the function was successfully executed, or <CODE>-1</CODE> upon error. <DT><B> Notes </B><DD><P>The function <CODE>SLexecute_function</CODE> may be a better alternative for some uses. <DT><B> See Also </B><DD><P><CODE>SLang_run_hooks, SLexecute_function, SLang_is_defined</CODE> </DL> <P> <P> <HR> <A HREF="cref-82.html">Next</A> <A HREF="cref-80.html">Previous</A> <A HREF="cref.html#toc81">Contents</A> </BODY> </HTML>