projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e37a498
)
[CRT]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Fri, 13 May 2011 20:21:58 +0000
(20:21 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Fri, 13 May 2011 20:21:58 +0000
(20:21 +0000)
Merge r51273 from cmake branch:
The crt library must provide a and w version of the functions and not rely to _UNICODE being set or not
svn path=/trunk/; revision=51713
reactos/lib/sdk/crt/string/atol.c
patch
|
blob
|
history
diff --git
a/reactos/lib/sdk/crt/string/atol.c
b/reactos/lib/sdk/crt/string/atol.c
index
4594461
..
b66d176
100644
(file)
--- a/
reactos/lib/sdk/crt/string/atol.c
+++ b/
reactos/lib/sdk/crt/string/atol.c
@@
-1,14
+1,17
@@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <stdlib.h>
-#include <tchar.h>
/*
* @implemented
*/
-long
-_ttol(const _TCHAR *str)
+long atol(const char *str)
{
- return (long)_ttoi64(str);
+ return (long)_atoi64(str);
+}
+
+long _wtol(const wchar_t *str)
+{
+ return (long)_wtoi64(str);
}
int _atoldbl(_LDOUBLE *value, char *str)
@@
-16,4
+19,4
@@
int _atoldbl(_LDOUBLE *value, char *str)
/* FIXME needs error checking for huge/small values */
//*value = strtold(str,0);
return -1;
-}
+}
\ No newline at end of file