7.20.1.1 The atof function

Synopsis

1

#include <stdlib.h>
double atof(const char *nptr);

Description

2

The atof function converts the initial portion of the string pointed to by nptr to double representation. Except for the behavior on error, it is equivalent to

strtod(nptr, (char **)NULL)

Returns

3

The atof function returns the converted value.

Forward References