Name
atof - convert a string to a doubleLibrary
Standard C library ( libc ", " -lc )Synopsis
#include <stdlib.h> double atof(const char * nptr );
Description
The atof() function converts the initial portion of the string pointed to by nptr todouble
. The behavior is the same as strtod(nptr, NULL);
except that atof() does not detect errors.
Return Value
The converted value.Attributes
For an explanation of the terms used in this section, see attributes(7).Interface | Attribute | Value |
T} | Thread safety | MT-Safe locale |