Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > 700475c8ae73fb4d57b6df4485c29e1c > files > 158

slang-doc-1.4.4-2mdk.i586.rpm

<!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}: SLatoi</TITLE>
 <LINK HREF="cref-100.html" REL=next>
 <LINK HREF="cref-98.html" REL=previous>
 <LINK HREF="cref.html#toc99" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-100.html">Next</A>
<A HREF="cref-98.html">Previous</A>
<A HREF="cref.html#toc99">Contents</A>
<HR>
<H2><A NAME="SLatoi"></A> <A NAME="s99">99. <B>SLatoi</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Convert a text string to an integer
<DT><B> Usage </B><DD><P><CODE>int SLatoi(unsigned char *str</CODE>
<DT><B> Description </B><DD><P><CODE>SLatoi</CODE> parses the string <CODE>str</CODE> to interpret it as an
integer value.  Unlike <CODE>atoi</CODE>, <CODE>SLatoi</CODE> can also parse
strings containing integers expressed in
hexidecimal (e.g., <CODE>"0x7F"</CODE>) and octal (e.g., <CODE>"012"</CODE>.)
notation.
<DT><B> See Also </B><DD><P><CODE>SLang_guess_type</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-100.html">Next</A>
<A HREF="cref-98.html">Previous</A>
<A HREF="cref.html#toc99">Contents</A>
</BODY>
</HTML>