18 xstrtod (str, ptr, result)
29 val = strtod (str, &terminator);
31 /* Having a non-zero terminator is an error only when PTR is NULL. */
32 if (terminator == str || (ptr == NULL && *terminator != '\0'))
36 /* Allow underflow (in which case strtod returns zero),
37 but flag overflow as an error. */
38 if (val != 0.0 && errno == ERANGE)