-#include <crtdll/wchar.h>
+#include <msvcrt/wchar.h>
-long wcstol(const wchar_t *cp,wchar_t **endp,int base)
+long wcstol(const wchar_t* cp, wchar_t** endp, int base)
{
- long result = 0,value;
+ long result = 0, value;
int sign = 1;
- if ( *cp == L'-' ) {
+ if (*cp == L'-') {
sign = -1;
cp++;
}
cp++;
}
if (endp)
- *endp = (wchar_t *)cp;
+ *endp = (wchar_t*)cp;
return result * sign;
}
-
-unsigned long wcstoul(const wchar_t *cp,wchar_t **endp,int base)
+unsigned long wcstoul(const wchar_t* cp, wchar_t** endp, int base)
{
- unsigned long result = 0,value;
+ unsigned long result = 0, value;
if (!base) {
base = 10;
cp++;
}
if (endp)
- *endp = (wchar_t *)cp;
+ *endp = (wchar_t*)cp;
return result;
}
-