• 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/libquadmath.html/
1<html lang="en">
2<head>
3<title>strtoflt128 - GCC libquadmath</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="GCC libquadmath">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="I_002fO-Library-Routines.html#I_002fO-Library-Routines" title="I/O Library Routines">
9<link rel="next" href="quadmath_005fsnprintf.html#quadmath_005fsnprintf" title="quadmath_snprintf">
10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11<!--
12Copyright (C) 2010-2013 Free Software Foundation, Inc.
13
14     Permission is granted to copy, distribute and/or modify this
15     document under the terms of the GNU Free Documentation License,
16     Version 1.2 or any later version published by the Free Software
17     Foundation; with no Invariant Sections, with the Front-Cover Texts
18     being ``A GNU Manual,'' and with the Back-Cover Texts as in (a)
19     below.  A copy of the license is included in the section entitled
20     ``GNU Free Documentation License.''
21
22     (a) The FSF's Back-Cover Text is: ``You have the freedom to copy
23     and modify this GNU manual.
24   -->
25<meta http-equiv="Content-Style-Type" content="text/css">
26<style type="text/css"><!--
27  pre.display { font-family:inherit }
28  pre.format  { font-family:inherit }
29  pre.smalldisplay { font-family:inherit; font-size:smaller }
30  pre.smallformat  { font-family:inherit; font-size:smaller }
31  pre.smallexample { font-size:smaller }
32  pre.smalllisp    { font-size:smaller }
33  span.sc    { font-variant:small-caps }
34  span.roman { font-family:serif; font-weight:normal; } 
35  span.sansserif { font-family:sans-serif; font-weight:normal; } 
36--></style>
37<link rel="stylesheet" type="text/css" href="../cs.css">
38</head>
39<body>
40<div class="node">
41<a name="strtoflt128"></a>
42<p>
43Next:&nbsp;<a rel="next" accesskey="n" href="quadmath_005fsnprintf.html#quadmath_005fsnprintf">quadmath_snprintf</a>,
44Up:&nbsp;<a rel="up" accesskey="u" href="I_002fO-Library-Routines.html#I_002fO-Library-Routines">I/O Library Routines</a>
45<hr>
46</div>
47
48<h3 class="section">3.1 <code>strtoflt128</code> &mdash; Convert from string</h3>
49
50<p>The function <code>strtoflt128</code> converts a string into a
51<code>__float128</code> number.
52
53     <dl>
54<dt>Syntax<dd><code>__float128 strtoflt128 (const char *s, char **sp)</code>
55
56     <br><dt><em>Arguments</em>:<dd>
57     <p><table summary=""><tr align="left"><td valign="top" width="15%"><var>s</var>  </td><td valign="top" width="70%">input string
58<br></td></tr><tr align="left"><td valign="top" width="15%"><var>sp</var> </td><td valign="top" width="70%">the address of the next character in the string
59     <br></td></tr></table>
60
61     <p>The argument <var>sp</var> contains, if not <code>NULL</code>, the address of the
62next character following the parts of the string, which have been read.
63
64     <br><dt>Example<dd>
65     <pre class="smallexample">          #include &lt;quadmath.h&gt;
66          
67          int main ()
68          {
69            __float128 r;
70          
71            r = strtoflt128 ("1.2345678", NULL);
72          
73            return 0;
74          }
75</pre>
76     </dl>
77
78   </body></html>
79
80