git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for HEAD-2003021201
[reactos.git]
/
lib
/
crtdll
/
wchar
/
wcstol.c
diff --git
a/lib/crtdll/wchar/wcstol.c
b/lib/crtdll/wchar/wcstol.c
index
5a5ae97
..
fa95e96
100644
(file)
--- a/
lib/crtdll/wchar/wcstol.c
+++ b/
lib/crtdll/wchar/wcstol.c
@@
-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;
int sign = 1;
- if (
*cp == L'-'
) {
+ if (
*cp == L'-'
) {
sign = -1;
cp++;
}
sign = -1;
cp++;
}
@@
-28,14
+28,13
@@
long wcstol(const wchar_t *cp,wchar_t **endp,int base)
cp++;
}
if (endp)
cp++;
}
if (endp)
- *endp = (wchar_t
*)cp;
+ *endp = (wchar_t*)cp;
return result * sign;
}
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;
if (!base) {
base = 10;
@@
-54,7
+53,6
@@
unsigned long wcstoul(const wchar_t *cp,wchar_t **endp,int base)
cp++;
}
if (endp)
cp++;
}
if (endp)
- *endp = (wchar_t
*)cp;
+ *endp = (wchar_t*)cp;
return result;
}
return result;
}
-