Standard C++ Library Reference ISO/IEC (VERSION3)
The function converts the initial wide characters of the wide string s to an equivalent value x of type
double. If endptr is not a null pointer, the function stores a pointer to the unconverted remainder of the
wide string in *endptr. The function then returns x.
The initial wide characters of the wide string s must match the same pattern as recognized by the function
strtod, where each wide character wc is converted as if by calling wctob(wc)).
If the wide string s matches this pattern, its equivalent value is the value returned by strtod for the
converted sequence. If the wide string s does not match a valid pattern, the value stored in *endptr is s,
and x is zero. If a range error occurs, wcstod behaves exactly as the functions declared in <math.h>.
wcstok
wchar_t *wcstok(wchar_t *s1, const wchar_t *s2,
wchar_t **ptr);
If s1 is not a null pointer, the function begins a search of the wide string s1. Otherwise, it begins a search
of the wide string whose address was last stored in *ptr on an earlier call to the function, as described
below. The search proceeds as follows:
The function searches the wide string for begin, the address of the first element that equals none of
the elements of the wide string s2 (a set of token separators). It considers the terminating null
character as part of the search wide string only.
1.
If the search does not find an element, the function stores the address of the terminating null wide
character in *ptr (so that a subsequent search beginning with that address will fail) and returns a
null pointer. Otherwise, the function searches from begin for end, the address of the first element
that equals any one of the elements of the wide string s2. It again considers the terminating null
wide character as part of the search string only.
2.
If the search does not find an element, the function stores the address of the terminating null wide
character in *ptr. Otherwise, it stores a null wide character in the element whose address is end.
Then it stores the address of the next element after end in *ptr (so that a subsequent search
beginning with that address will continue with the remaining elements of the string) and returns
begin.
3.
wcstol
long wcstol(const wchar_t *nptr, wchar_t **endptr,
int base);
The function converts the initial wide characters of the wide string s to an equivalent value x of type long.
If endptr is not a null pointer, the function stores a pointer to the unconverted remainder of the wide
string in *endptr. The function then returns x.
The initial wide characters of the wide string s must match the same pattern as recognized by the function
strtol, with the same base argument, where each wide character wc is converted as if by calling
wctob(wc)).
If the wide string s matches this pattern, its equivalent value is the value returned by strtol, with the
same base argument, for the converted sequence. If the wide string s does not match a valid pattern, the
value stored in *endptr is s, and x is zero. If the equivalent value is too large in magnitude to represent