update for HEAD-2003021201
[reactos.git] / lib / crtdll / wchar / wcstol.c
index 5a5ae97..fa95e96 100644 (file)
@@ -1,12 +1,12 @@
-#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++;
        }
@@ -28,14 +28,13 @@ long wcstol(const wchar_t *cp,wchar_t **endp,int base)
                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;
@@ -54,7 +53,6 @@ unsigned long wcstoul(const wchar_t *cp,wchar_t **endp,int base)
                cp++;
        }
        if (endp)
-               *endp = (wchar_t *)cp;
+               *endp = (wchar_t*)cp;
        return result;
 }
-