• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/libc/
1<html lang="en">
2<head>
3<title>atoll - Untitled</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Untitled">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Stdlib.html#Stdlib" title="Stdlib">
9<link rel="prev" href="atoi.html#atoi" title="atoi">
10<link rel="next" href="bsearch.html#bsearch" title="bsearch">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<meta http-equiv="Content-Style-Type" content="text/css">
13<style type="text/css"><!--
14  pre.display { font-family:inherit }
15  pre.format  { font-family:inherit }
16  pre.smalldisplay { font-family:inherit; font-size:smaller }
17  pre.smallformat  { font-family:inherit; font-size:smaller }
18  pre.smallexample { font-size:smaller }
19  pre.smalllisp    { font-size:smaller }
20  span.sc    { font-variant:small-caps }
21  span.roman { font-family:serif; font-weight:normal; } 
22  span.sansserif { font-family:sans-serif; font-weight:normal; } 
23--></style>
24<link rel="stylesheet" type="text/css" href="../cs.css">
25</head>
26<body>
27<div class="node">
28<a name="atoll"></a>
29<p>
30Next:&nbsp;<a rel="next" accesskey="n" href="bsearch.html#bsearch">bsearch</a>,
31Previous:&nbsp;<a rel="previous" accesskey="p" href="atoi.html#atoi">atoi</a>,
32Up:&nbsp;<a rel="up" accesskey="u" href="Stdlib.html#Stdlib">Stdlib</a>
33<hr>
34</div>
35
36<h3 class="section">2.9 <code>atoll</code>&mdash;convert a string to a long long integer</h3>
37
38<p><a name="index-atoll-14"></a><a name="index-g_t_005fatoll_005fr-15"></a><strong>Synopsis</strong>
39<pre class="example">     #include &lt;stdlib.h&gt;
40     long long atoll(const char *<var>str</var>);
41     long long _atoll_r(struct _reent *<var>ptr</var>, const char *<var>str</var>);
42     
43</pre>
44   <p><strong>Description</strong><br>
45The function <code>atoll</code> converts the initial portion of the string
46pointed to by <code>*</code><var>str</var> to a type <code>long long</code>.  A call to
47atoll(str) in this implementation is equivalent to
48strtoll(str, (char **)NULL, 10) including behavior on error.
49
50   <p>The alternate function <code>_atoll_r</code> is a reentrant version.  The
51extra argument <var>reent</var> is a pointer to a reentrancy structure.
52
53   <p><br>
54<strong>Returns</strong><br>
55The converted value.
56
57   <p><br>
58<strong>Portability</strong><br>
59<code>atoll</code> is ISO 9899 (C99) and POSIX 1003.1-2001 compatable.
60
61   <p>No supporting OS subroutines are required.
62
63   <p><br>
64
65   </body></html>
66
67