1ATOF(3) Linux Programmer's Manual ATOF(3)
2
3
4
6 atof - convert a string to a double
7
9 #include <stdlib.h>
10
11 double atof(const char *nptr);
12
14 The atof() function converts the initial portion of the string pointed
15 to by nptr to double. The behaviour is the same as
16
17 strtod(nptr, (char **)NULL);
18
19 except that atof() does not detect errors.
20
22 The converted value.
23
25 SVr4, POSIX.1-2001, 4.3BSD, C89, C99.
26
28 atoi(3), atol(3), strtod(3), strtol(3), strtoul(3)
29
30
31
32GNU 1993-03-29 ATOF(3)