Synopsis

#include <stdlib.h>

double atof(const char *str);

Conformance

IEEE Std 1003.1-2001

Description

Function converts the initial portion of the string pointed to by str to double representation. It is equivalent to:

strtod(str, (char **)NULL);

Return value

Converted float number.

Errors

The function need not affect the value of errno on an error.