Definition | #include <stdlib.h> double strtod(const char *s, char **endptr); | |
Description | These functions convert the string to which s points into a floating-point number of type
Any white-space character may be used for tab (see definition under i
If endptr is a null pointer,
If endptr is not a null pointer, a pointer (*endptr) to the first character in s that completes the conversion is returned. If absolutely no conversion is possible, *endptr will be set to the start address of string s. | |
Return val. | Floating-point number of type | |
for strings which are structured as described above and represent a numeric value within the permissible floating-point range. | ||
0 | for strings that do not conform to the syntax described above or do not begin with convertible characters. | |
| depending on the function type and the sign of x, for strings whose numeric value lies outside the permissible floating-point range. | |
Errors |
| |
|
| The return value causes an overflow or underflow |
|
| No conversion could be performed. |
Notes | The radix character in the string to be converted is determined by | |
See also |
|