<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLang_init_slfile</TITLE>
<LINK HREF="cref-57.html" REL=next>
<LINK HREF="cref-55.html" REL=previous>
<LINK HREF="cref.html#toc56" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-57.html">Next</A>
<A HREF="cref-55.html">Previous</A>
<A HREF="cref.html#toc56">Contents</A>
<HR>
<H2><A NAME="SLang_init_slfile"></A> <A NAME="s56">56. <B>SLang_init_slfile</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Initialize the interpreter file I/O intrinsics
<DT><B> Usage </B><DD><P><CODE>int SLang_init_slfile (void)</CODE>
<DT><B> Description </B><DD><P>This function initializes the interpreters file I/O intrinsic
functions.  This function adds intrinsic functions such as
<CODE>fopen</CODE>, <CODE>fclose</CODE>, and <CODE>fputs</CODE> to the interpreter.
It returns <CODE>0</CODE> if successful, or <CODE>-1</CODE> upon error.
<DT><B> Notes </B><DD><P>Before this function can be called, it is first necessary to call
<CODE>SLang_init_slang</CODE>.  It also adds
the preprocessor symbol <CODE>__SLFILE__</CODE> to the interpreter.
<DT><B> See Also </B><DD><P><CODE>SLang_init_slang, SLang_init_slunix, SLang_init_slmath</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-57.html">Next</A>
<A HREF="cref-55.html">Previous</A>
<A HREF="cref.html#toc56">Contents</A>
</BODY>
</HTML>
