Converts the initial portion of a string to double representation. The function skips whitespace characters at the beginning of the string. The conversion stops when a character that cannot be part of a number is reached. strtod obtains a pointer to the unconverted part of the string. The expected form of the subject sequence is an optional plus or minus sign, then a nonempty sequence of digits optionally containing a decimal-point character, then an optional exponent part.