Convert a wide-character string to a unsigned long.
This function converts the initial portion of the character string pointed to by pSrc to a long integer (also see description of wcstol()). If the subject sequence is empty or does not have the expected form, no conversion is performed. The value of pSrc 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). |
base | [ in ] See description of wcstol(). |
pResult | [ out ] The resulting 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. |