]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/atof.3
atexit.3: CONFORMING TO: add POSIX.1-2008
[thirdparty/man-pages.git] / man3 / atof.3
CommitLineData
fea681da
MK
1.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2.\"
93015253 3.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
c13182ef 12.\"
fea681da
MK
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
c13182ef 20.\"
fea681da
MK
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 23.\" %%%LICENSE_END
fea681da
MK
24.\"
25.\" References consulted:
26.\" Linux libc source code
27.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28.\" 386BSD man pages
29.\" Modified Mon Mar 29 22:39:24 1993, David Metcalfe
30.\" Modified Sat Jul 24 21:39:22 1993, Rik Faith (faith@cs.unc.edu)
fe0fefbf 31.TH ATOF 3 2015-03-02 "GNU" "Linux Programmer's Manual"
fea681da
MK
32.SH NAME
33atof \- convert a string to a double
34.SH SYNOPSIS
35.nf
36.B #include <stdlib.h>
37.sp
38.BI "double atof(const char *" nptr );
39.fi
40.SH DESCRIPTION
60a90ecd
MK
41The
42.BR atof ()
43function converts the initial portion of the string
6d275e3c
MK
44pointed to by \fInptr\fP to
45.IR double .
d9bfdb9c 46The behavior is the same as
fea681da 47.sp
2147452b 48.in +4n
13f78d96 49strtod(nptr, NULL);
2147452b 50.in
fea681da 51.sp
60a90ecd
MK
52except that
53.BR atof ()
54does not detect errors.
47297adb 55.SH RETURN VALUE
fea681da 56The converted value.
b5dedda7 57.SH ATTRIBUTES
929a50b5
MK
58For an explanation of the terms used in this section, see
59.BR attributes (7).
60.TS
61allbox;
62lb lb lb
63l l l.
64Interface Attribute Value
65T{
b5dedda7 66.BR atof ()
929a50b5
MK
67T} Thread safety MT-Safe locale
68.TE
47297adb 69.SH CONFORMING TO
68e1685c 70SVr4, POSIX.1-2001, 4.3BSD, C89, C99.
47297adb 71.SH SEE ALSO
fea681da
MK
72.BR atoi (3),
73.BR atol (3),
74.BR strtod (3),
75.BR strtol (3),
76.BR strtoul (3)