1 #include <msvcrt/stdlib.h>
7 long wcstol(const wchar_t *cp,wchar_t **endp,int base)
22 if ((*cp == L'x') && iswxdigit(cp[1])) {
28 while (iswxdigit(*cp) && (value = iswdigit(*cp) ? *cp-L'0' : (iswlower(*cp)
29 ? towupper(*cp) : *cp)-L'A'+10) < base) {
30 result = result*base + value;
34 *endp = (wchar_t *)cp;