Convert a wide-character string to a double-precision number.
This function converts the initial portion of the character string pointed to by pSrc to a double percision number. First it decomposes the input character string into three parts: an initial, possibly empty, sequence of white-space characters (as specified by iswspace()); a subject sequence interpreted as a floating-point constant; and a final character string of one or more unrecognised characters, including the terminating null character. Then it attempts to convert the subject sequence to a floating-point number, and returns the result in pToDouble. A pointer to the final character string is stored in the pointer pEndptr provided that pEndptr is not NULL.
- Parameters
-
pSrc | [ in ] Pointer to the wide character string to convert. |
pEndPtr | [ out ] If not NULL, points to the final character string (see above). |
pToDouble | [ out ] The resulting double value. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eFail | Unable to perform the conversion. |
P6R::eNotInitialized | A successful call to initialize was not made before this call. |