<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> S-Lang Run-Time Library Reference: Version 1.4.0</TITLE>
<LINK HREF="slangfun-1.html" REL=next>


</HEAD>
<BODY>
<A HREF="slangfun-1.html">Next</A>
Previous
Contents
<HR>
<H1> S-Lang Run-Time Library Reference: Version 1.4.0</H1>

<H2>John E. Davis, <CODE>davis@space.mit.edu</CODE></H2> Sun Apr 23 00:38:07 2000
<P>
<H2><A NAME="toc1">1.</A> <A HREF="slangfun-1.html">Array Functions</A></H2>

<UL>
<LI><A HREF="slangfun-1.html#ss1.1">1.1 <B>_reshape</B></A>
<LI><A HREF="slangfun-1.html#ss1.2">1.2 <B>array_info</B></A>
<LI><A HREF="slangfun-1.html#ss1.3">1.3 <B>array_map</B></A>
<LI><A HREF="slangfun-1.html#ss1.4">1.4 <B>array_sort</B></A>
<LI><A HREF="slangfun-1.html#ss1.5">1.5 <B>init_char_array</B></A>
<LI><A HREF="slangfun-1.html#ss1.6">1.6 <B>length</B></A>
<LI><A HREF="slangfun-1.html#ss1.7">1.7 <B>reshape</B></A>
<LI><A HREF="slangfun-1.html#ss1.8">1.8 <B>transpose</B></A>
<LI><A HREF="slangfun-1.html#ss1.9">1.9 <B>where</B></A>
</UL>
<P>
<H2><A NAME="toc2">2.</A> <A HREF="slangfun-2.html">Associative Array Functions</A></H2>

<UL>
<LI><A HREF="slangfun-2.html#ss2.1">2.1 <B>assoc_delete_key</B></A>
<LI><A HREF="slangfun-2.html#ss2.2">2.2 <B>assoc_get_keys</B></A>
<LI><A HREF="slangfun-2.html#ss2.3">2.3 <B>assoc_get_values</B></A>
<LI><A HREF="slangfun-2.html#ss2.4">2.4 <B>assoc_key_exists</B></A>
</UL>
<P>
<H2><A NAME="toc3">3.</A> <A HREF="slangfun-3.html">Functions that Operate on Strings</A></H2>

<UL>
<LI><A HREF="slangfun-3.html#ss3.1">3.1 <B>Sprintf</B></A>
<LI><A HREF="slangfun-3.html#ss3.2">3.2 <B>create_delimited_string</B></A>
<LI><A HREF="slangfun-3.html#ss3.3">3.3 <B>extract_element</B></A>
<LI><A HREF="slangfun-3.html#ss3.4">3.4 <B>is_list_element</B></A>
<LI><A HREF="slangfun-3.html#ss3.5">3.5 <B>is_substr</B></A>
<LI><A HREF="slangfun-3.html#ss3.6">3.6 <B>make_printable_string</B></A>
<LI><A HREF="slangfun-3.html#ss3.7">3.7 <B>sprintf</B></A>
<LI><A HREF="slangfun-3.html#ss3.8">3.8 <B>sscanf</B></A>
<LI><A HREF="slangfun-3.html#ss3.9">3.9 <B>str_delete_chars</B></A>
<LI><A HREF="slangfun-3.html#ss3.10">3.10 <B>str_quote_string</B></A>
<LI><A HREF="slangfun-3.html#ss3.11">3.11 <B>str_replace</B></A>
<LI><A HREF="slangfun-3.html#ss3.12">3.12 <B>str_uncomment_string</B></A>
<LI><A HREF="slangfun-3.html#ss3.13">3.13 <B>strcat</B></A>
<LI><A HREF="slangfun-3.html#ss3.14">3.14 <B>strchop</B></A>
<LI><A HREF="slangfun-3.html#ss3.15">3.15 <B>strchopr</B></A>
<LI><A HREF="slangfun-3.html#ss3.16">3.16 <B>strcmp</B></A>
<LI><A HREF="slangfun-3.html#ss3.17">3.17 <B>strcompress</B></A>
<LI><A HREF="slangfun-3.html#ss3.18">3.18 <B>string_match</B></A>
<LI><A HREF="slangfun-3.html#ss3.19">3.19 <B>string_match_nth</B></A>
<LI><A HREF="slangfun-3.html#ss3.20">3.20 <B>strjoin</B></A>
<LI><A HREF="slangfun-3.html#ss3.21">3.21 <B>strlen</B></A>
<LI><A HREF="slangfun-3.html#ss3.22">3.22 <B>strlow</B></A>
<LI><A HREF="slangfun-3.html#ss3.23">3.23 <B>strncmp</B></A>
<LI><A HREF="slangfun-3.html#ss3.24">3.24 <B>strreplace</B></A>
<LI><A HREF="slangfun-3.html#ss3.25">3.25 <B>strsub</B></A>
<LI><A HREF="slangfun-3.html#ss3.26">3.26 <B>strtok</B></A>
<LI><A HREF="slangfun-3.html#ss3.27">3.27 <B>strtrans</B></A>
<LI><A HREF="slangfun-3.html#ss3.28">3.28 <B>strtrim</B></A>
<LI><A HREF="slangfun-3.html#ss3.29">3.29 <B>strtrim_beg</B></A>
<LI><A HREF="slangfun-3.html#ss3.30">3.30 <B>strtrim_end</B></A>
<LI><A HREF="slangfun-3.html#ss3.31">3.31 <B>strup</B></A>
<LI><A HREF="slangfun-3.html#ss3.32">3.32 <B>substr</B></A>
</UL>
<P>
<H2><A NAME="toc4">4.</A> <A HREF="slangfun-4.html">Functions that Manipulate Structures</A></H2>

<UL>
<LI><A HREF="slangfun-4.html#ss4.1">4.1 <B>_push_struct_field_values</B></A>
<LI><A HREF="slangfun-4.html#ss4.2">4.2 <B>get_struct_field</B></A>
<LI><A HREF="slangfun-4.html#ss4.3">4.3 <B>get_struct_field_names</B></A>
<LI><A HREF="slangfun-4.html#ss4.4">4.4 <B>is_struct_type</B></A>
<LI><A HREF="slangfun-4.html#ss4.5">4.5 <B>set_struct_field</B></A>
<LI><A HREF="slangfun-4.html#ss4.6">4.6 <B>set_struct_fields</B></A>
</UL>
<P>
<H2><A NAME="toc5">5.</A> <A HREF="slangfun-5.html">Informational Functions</A></H2>

<UL>
<LI><A HREF="slangfun-5.html#ss5.1">5.1 <B>_NARGS</B></A>
<LI><A HREF="slangfun-5.html#ss5.2">5.2 <B>__get_defined_symbols</B></A>
<LI><A HREF="slangfun-5.html#ss5.3">5.3 <B>__is_initialized</B></A>
<LI><A HREF="slangfun-5.html#ss5.4">5.4 <B>_apropos</B></A>
<LI><A HREF="slangfun-5.html#ss5.5">5.5 <B>_function_name</B></A>
<LI><A HREF="slangfun-5.html#ss5.6">5.6 <B>_slang_version</B></A>
<LI><A HREF="slangfun-5.html#ss5.7">5.7 <B>_slang_version_string</B></A>
<LI><A HREF="slangfun-5.html#ss5.8">5.8 <B>get_doc_string_from_file</B></A>
<LI><A HREF="slangfun-5.html#ss5.9">5.9 <B>is_defined</B></A>
</UL>
<P>
<H2><A NAME="toc6">6.</A> <A HREF="slangfun-6.html">Mathematical Functions</A></H2>

<UL>
<LI><A HREF="slangfun-6.html#ss6.1">6.1 <B>Conj</B></A>
<LI><A HREF="slangfun-6.html#ss6.2">6.2 <B>Imag</B></A>
<LI><A HREF="slangfun-6.html#ss6.3">6.3 <B>Real</B></A>
<LI><A HREF="slangfun-6.html#ss6.4">6.4 <B>abs</B></A>
<LI><A HREF="slangfun-6.html#ss6.5">6.5 <B>acos</B></A>
<LI><A HREF="slangfun-6.html#ss6.6">6.6 <B>acosh</B></A>
<LI><A HREF="slangfun-6.html#ss6.7">6.7 <B>asin</B></A>
<LI><A HREF="slangfun-6.html#ss6.8">6.8 <B>asinh</B></A>
<LI><A HREF="slangfun-6.html#ss6.9">6.9 <B>atan</B></A>
<LI><A HREF="slangfun-6.html#ss6.10">6.10 <B>atanh</B></A>
<LI><A HREF="slangfun-6.html#ss6.11">6.11 <B>cos</B></A>
<LI><A HREF="slangfun-6.html#ss6.12">6.12 <B>cosh</B></A>
<LI><A HREF="slangfun-6.html#ss6.13">6.13 <B>exp</B></A>
<LI><A HREF="slangfun-6.html#ss6.14">6.14 <B>log</B></A>
<LI><A HREF="slangfun-6.html#ss6.15">6.15 <B>log10</B></A>
<LI><A HREF="slangfun-6.html#ss6.16">6.16 <B>mul2</B></A>
<LI><A HREF="slangfun-6.html#ss6.17">6.17 <B>polynom</B></A>
<LI><A HREF="slangfun-6.html#ss6.18">6.18 <B>set_float_format</B></A>
<LI><A HREF="slangfun-6.html#ss6.19">6.19 <B>sign</B></A>
<LI><A HREF="slangfun-6.html#ss6.20">6.20 <B>sin</B></A>
<LI><A HREF="slangfun-6.html#ss6.21">6.21 <B>sinh</B></A>
<LI><A HREF="slangfun-6.html#ss6.22">6.22 <B>sqr</B></A>
<LI><A HREF="slangfun-6.html#ss6.23">6.23 <B>sqrt</B></A>
<LI><A HREF="slangfun-6.html#ss6.24">6.24 <B>tan</B></A>
<LI><A HREF="slangfun-6.html#ss6.25">6.25 <B>tanh</B></A>
</UL>
<P>
<H2><A NAME="toc7">7.</A> <A HREF="slangfun-7.html">Message and Error Functions</A></H2>

<UL>
<LI><A HREF="slangfun-7.html#ss7.1">7.1 <B>error</B></A>
<LI><A HREF="slangfun-7.html#ss7.2">7.2 <B>message</B></A>
<LI><A HREF="slangfun-7.html#ss7.3">7.3 <B>usage</B></A>
<LI><A HREF="slangfun-7.html#ss7.4">7.4 <B>verror</B></A>
<LI><A HREF="slangfun-7.html#ss7.5">7.5 <B>vmessage</B></A>
</UL>
<P>
<H2><A NAME="toc8">8.</A> <A HREF="slangfun-8.html">Time and Date Functions</A></H2>

<UL>
<LI><A HREF="slangfun-8.html#ss8.1">8.1 <B>_time</B></A>
<LI><A HREF="slangfun-8.html#ss8.2">8.2 <B>ctime</B></A>
<LI><A HREF="slangfun-8.html#ss8.3">8.3 <B>gmtime</B></A>
<LI><A HREF="slangfun-8.html#ss8.4">8.4 <B>localtime</B></A>
<LI><A HREF="slangfun-8.html#ss8.5">8.5 <B>tic</B></A>
<LI><A HREF="slangfun-8.html#ss8.6">8.6 <B>time</B></A>
<LI><A HREF="slangfun-8.html#ss8.7">8.7 <B>times</B></A>
<LI><A HREF="slangfun-8.html#ss8.8">8.8 <B>toc</B></A>
</UL>
<P>
<H2><A NAME="toc9">9.</A> <A HREF="slangfun-9.html">Data-Type Conversion Functions</A></H2>

<UL>
<LI><A HREF="slangfun-9.html#ss9.1">9.1 <B>_slang_guess_type</B></A>
<LI><A HREF="slangfun-9.html#ss9.2">9.2 <B>_typeof</B></A>
<LI><A HREF="slangfun-9.html#ss9.3">9.3 <B>atof</B></A>
<LI><A HREF="slangfun-9.html#ss9.4">9.4 <B>char</B></A>
<LI><A HREF="slangfun-9.html#ss9.5">9.5 <B>define_case</B></A>
<LI><A HREF="slangfun-9.html#ss9.6">9.6 <B>double</B></A>
<LI><A HREF="slangfun-9.html#ss9.7">9.7 <B>int</B></A>
<LI><A HREF="slangfun-9.html#ss9.8">9.8 <B>integer</B></A>
<LI><A HREF="slangfun-9.html#ss9.9">9.9 <B>isdigit</B></A>
<LI><A HREF="slangfun-9.html#ss9.10">9.10 <B>string</B></A>
<LI><A HREF="slangfun-9.html#ss9.11">9.11 <B>tolower</B></A>
<LI><A HREF="slangfun-9.html#ss9.12">9.12 <B>toupper</B></A>
<LI><A HREF="slangfun-9.html#ss9.13">9.13 <B>typecast</B></A>
<LI><A HREF="slangfun-9.html#ss9.14">9.14 <B>typeof</B></A>
</UL>
<P>
<H2><A NAME="toc10">10.</A> <A HREF="slangfun-10.html">Stdio File I/O Functions</A></H2>

<UL>
<LI><A HREF="slangfun-10.html#ss10.1">10.1 <B>clearerr</B></A>
<LI><A HREF="slangfun-10.html#ss10.2">10.2 <B>fclose</B></A>
<LI><A HREF="slangfun-10.html#ss10.3">10.3 <B>fdopen</B></A>
<LI><A HREF="slangfun-10.html#ss10.4">10.4 <B>feof</B></A>
<LI><A HREF="slangfun-10.html#ss10.5">10.5 <B>ferror</B></A>
<LI><A HREF="slangfun-10.html#ss10.6">10.6 <B>fflush</B></A>
<LI><A HREF="slangfun-10.html#ss10.7">10.7 <B>fgets</B></A>
<LI><A HREF="slangfun-10.html#ss10.8">10.8 <B>fgetslines</B></A>
<LI><A HREF="slangfun-10.html#ss10.9">10.9 <B>fopen</B></A>
<LI><A HREF="slangfun-10.html#ss10.10">10.10 <B>fprintf</B></A>
<LI><A HREF="slangfun-10.html#ss10.11">10.11 <B>fputs</B></A>
<LI><A HREF="slangfun-10.html#ss10.12">10.12 <B>fread</B></A>
<LI><A HREF="slangfun-10.html#ss10.13">10.13 <B>fseek</B></A>
<LI><A HREF="slangfun-10.html#ss10.14">10.14 <B>ftell</B></A>
<LI><A HREF="slangfun-10.html#ss10.15">10.15 <B>fwrite</B></A>
<LI><A HREF="slangfun-10.html#ss10.16">10.16 <B>pclose</B></A>
<LI><A HREF="slangfun-10.html#ss10.17">10.17 <B>popen</B></A>
<LI><A HREF="slangfun-10.html#ss10.18">10.18 <B>printf</B></A>
</UL>
<P>
<H2><A NAME="toc11">11.</A> <A HREF="slangfun-11.html">Low-level POSIX I/O functions</A></H2>

<UL>
<LI><A HREF="slangfun-11.html#ss11.1">11.1 <B>close</B></A>
<LI><A HREF="slangfun-11.html#ss11.2">11.2 <B>fileno</B></A>
<LI><A HREF="slangfun-11.html#ss11.3">11.3 <B>isatty</B></A>
<LI><A HREF="slangfun-11.html#ss11.4">11.4 <B>lseek</B></A>
<LI><A HREF="slangfun-11.html#ss11.5">11.5 <B>open</B></A>
<LI><A HREF="slangfun-11.html#ss11.6">11.6 <B>read</B></A>
<LI><A HREF="slangfun-11.html#ss11.7">11.7 <B>write</B></A>
</UL>
<P>
<H2><A NAME="toc12">12.</A> <A HREF="slangfun-12.html">Directory Functions</A></H2>

<UL>
<LI><A HREF="slangfun-12.html#ss12.1">12.1 <B>chdir</B></A>
<LI><A HREF="slangfun-12.html#ss12.2">12.2 <B>chmod</B></A>
<LI><A HREF="slangfun-12.html#ss12.3">12.3 <B>chown</B></A>
<LI><A HREF="slangfun-12.html#ss12.4">12.4 <B>getcwd</B></A>
<LI><A HREF="slangfun-12.html#ss12.5">12.5 <B>listdir</B></A>
<LI><A HREF="slangfun-12.html#ss12.6">12.6 <B>lstat_file</B></A>
<LI><A HREF="slangfun-12.html#ss12.7">12.7 <B>mkdir</B></A>
<LI><A HREF="slangfun-12.html#ss12.8">12.8 <B>readlink</B></A>
<LI><A HREF="slangfun-12.html#ss12.9">12.9 <B>remove</B></A>
<LI><A HREF="slangfun-12.html#ss12.10">12.10 <B>rename</B></A>
<LI><A HREF="slangfun-12.html#ss12.11">12.11 <B>rmdir</B></A>
<LI><A HREF="slangfun-12.html#ss12.12">12.12 <B>stat_file</B></A>
<LI><A HREF="slangfun-12.html#ss12.13">12.13 <B>stat_is</B></A>
</UL>
<P>
<H2><A NAME="toc13">13.</A> <A HREF="slangfun-13.html">Functions that parse pathnames</A></H2>

<UL>
<LI><A HREF="slangfun-13.html#ss13.1">13.1 <B>path_basename</B></A>
<LI><A HREF="slangfun-13.html#ss13.2">13.2 <B>path_concat</B></A>
<LI><A HREF="slangfun-13.html#ss13.3">13.3 <B>path_dirname</B></A>
<LI><A HREF="slangfun-13.html#ss13.4">13.4 <B>path_extname</B></A>
<LI><A HREF="slangfun-13.html#ss13.5">13.5 <B>path_is_absolute</B></A>
<LI><A HREF="slangfun-13.html#ss13.6">13.6 <B>path_sans_extname</B></A>
</UL>
<P>
<H2><A NAME="toc14">14.</A> <A HREF="slangfun-14.html">System Call Functions</A></H2>

<UL>
<LI><A HREF="slangfun-14.html#ss14.1">14.1 <B>errno</B></A>
<LI><A HREF="slangfun-14.html#ss14.2">14.2 <B>errno_string</B></A>
<LI><A HREF="slangfun-14.html#ss14.3">14.3 <B>getegid</B></A>
<LI><A HREF="slangfun-14.html#ss14.4">14.4 <B>geteuid</B></A>
<LI><A HREF="slangfun-14.html#ss14.5">14.5 <B>getgid</B></A>
<LI><A HREF="slangfun-14.html#ss14.6">14.6 <B>getpid</B></A>
<LI><A HREF="slangfun-14.html#ss14.7">14.7 <B>getppid</B></A>
<LI><A HREF="slangfun-14.html#ss14.8">14.8 <B>getuid</B></A>
<LI><A HREF="slangfun-14.html#ss14.9">14.9 <B>kill</B></A>
<LI><A HREF="slangfun-14.html#ss14.10">14.10 <B>mkfifo</B></A>
<LI><A HREF="slangfun-14.html#ss14.11">14.11 <B>setgid</B></A>
<LI><A HREF="slangfun-14.html#ss14.12">14.12 <B>setpgid</B></A>
<LI><A HREF="slangfun-14.html#ss14.13">14.13 <B>setuid</B></A>
<LI><A HREF="slangfun-14.html#ss14.14">14.14 <B>sleep</B></A>
<LI><A HREF="slangfun-14.html#ss14.15">14.15 <B>system</B></A>
<LI><A HREF="slangfun-14.html#ss14.16">14.16 <B>umask</B></A>
<LI><A HREF="slangfun-14.html#ss14.17">14.17 <B>uname</B></A>
</UL>
<P>
<H2><A NAME="toc15">15.</A> <A HREF="slangfun-15.html">Eval Functions</A></H2>

<UL>
<LI><A HREF="slangfun-15.html#ss15.1">15.1 <B>autoload</B></A>
<LI><A HREF="slangfun-15.html#ss15.2">15.2 <B>byte_compile_file</B></A>
<LI><A HREF="slangfun-15.html#ss15.3">15.3 <B>eval</B></A>
<LI><A HREF="slangfun-15.html#ss15.4">15.4 <B>evalfile</B></A>
</UL>
<P>
<H2><A NAME="toc16">16.</A> <A HREF="slangfun-16.html">Module Functions</A></H2>

<UL>
<LI><A HREF="slangfun-16.html#ss16.1">16.1 <B>get_import_module_path</B></A>
<LI><A HREF="slangfun-16.html#ss16.2">16.2 <B>import</B></A>
<LI><A HREF="slangfun-16.html#ss16.3">16.3 <B>set_import_module_path</B></A>
</UL>
<P>
<H2><A NAME="toc17">17.</A> <A HREF="slangfun-17.html">Debugging Functions</A></H2>

<UL>
<LI><A HREF="slangfun-17.html#ss17.1">17.1 <B>_clear_error</B></A>
<LI><A HREF="slangfun-17.html#ss17.2">17.2 <B>_debug_info</B></A>
<LI><A HREF="slangfun-17.html#ss17.3">17.3 <B>_slangtrace</B></A>
<LI><A HREF="slangfun-17.html#ss17.4">17.4 <B>_trace_function</B></A>
<LI><A HREF="slangfun-17.html#ss17.5">17.5 <B>_traceback</B></A>
</UL>
<P>
<H2><A NAME="toc18">18.</A> <A HREF="slangfun-18.html">Stack Functions</A></H2>

<UL>
<LI><A HREF="slangfun-18.html#ss18.1">18.1 <B>__pop_args</B></A>
<LI><A HREF="slangfun-18.html#ss18.2">18.2 <B>__push_args</B></A>
<LI><A HREF="slangfun-18.html#ss18.3">18.3 <B>_pop_n</B></A>
<LI><A HREF="slangfun-18.html#ss18.4">18.4 <B>_print_stack</B></A>
<LI><A HREF="slangfun-18.html#ss18.5">18.5 <B>_stk_reverse</B></A>
<LI><A HREF="slangfun-18.html#ss18.6">18.6 <B>_stk_roll</B></A>
<LI><A HREF="slangfun-18.html#ss18.7">18.7 <B>_stkdepth</B></A>
<LI><A HREF="slangfun-18.html#ss18.8">18.8 <B>dup</B></A>
<LI><A HREF="slangfun-18.html#ss18.9">18.9 <B>exch</B></A>
<LI><A HREF="slangfun-18.html#ss18.10">18.10 <B>pop</B></A>
</UL>
<P>
<H2><A NAME="toc19">19.</A> <A HREF="slangfun-19.html">Miscellaneous Functions</A></H2>

<UL>
<LI><A HREF="slangfun-19.html#ss19.1">19.1 <B>__get_reference</B></A>
<LI><A HREF="slangfun-19.html#ss19.2">19.2 <B>__uninitialize</B></A>
<LI><A HREF="slangfun-19.html#ss19.3">19.3 <B>_auto_declare</B></A>
<LI><A HREF="slangfun-19.html#ss19.4">19.4 <B>getenv</B></A>
<LI><A HREF="slangfun-19.html#ss19.5">19.5 <B>implements</B></A>
<LI><A HREF="slangfun-19.html#ss19.6">19.6 <B>putenv</B></A>
</UL>
<HR>
<A HREF="slangfun-1.html">Next</A>
Previous
Contents
</BODY>
</HTML>
