]> git.ipfire.org Git - thirdparty/gcc.git/blob - libquadmath/doc/strtoflt128.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libquadmath / doc / strtoflt128.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. _strtoflt128:
7
8 strtoflt128 --- Convert from string
9 ***********************************
10
11 The function ``strtoflt128`` converts a string into a
12 ``__float128`` number.
13
14 Syntax:
15 ``__float128 strtoflt128 (const char *s, char **sp)``
16
17 Arguments:
18 .. list-table::
19
20 * - :samp:`{s}`
21 - input string
22 * - :samp:`{sp}`
23 - the address of the next character in the string
24
25 The argument :samp:`{sp}` contains, if not ``NULL``, the address of the
26 next character following the parts of the string, which have been read.
27
28 Example:
29 .. code-block:: c++
30
31 #include <quadmath.h>
32
33 int main ()
34 {
35 __float128 r;
36
37 r = strtoflt128 ("1.2345678", NULL);
38
39 return 0;
40 }