[MSVCRT]: Implement and export _wtof, based on Wine and existing code; patch by Amine...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 11 Nov 2016 23:32:29 +0000 (23:32 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 11 Nov 2016 23:32:29 +0000 (23:32 +0000)
CORE-12335 #resolve
CORE-9312 #comment Please retest with r73206

svn path=/trunk/; revision=73206

reactos/dll/win32/msvcrt/msvcrt.spec
reactos/sdk/lib/crt/crt.cmake
reactos/sdk/lib/crt/string/wtof.c [new file with mode: 0644]

index 28b9ef2..2586559 100644 (file)
 @ cdecl _wsystem(wstr)
 @ cdecl _wtempnam(wstr wstr)
 @ cdecl _wtmpnam(ptr)
-@ cdecl _wtof(wstr)
+@ cdecl _wtof(wstr)
 @ cdecl _wtoi(wstr)
 @ cdecl _wtoi64(wstr)
 @ cdecl _wtol(wstr)
index a896a84..8de8a67 100644 (file)
@@ -305,6 +305,7 @@ list(APPEND CRT_SOURCE
     string/wcstombs_s.c
     string/wcstoul.c
     string/wctype.c
+    string/wtof.c
     string/wtoi.c
     string/wtoi64.c
     string/wtol.c
diff --git a/reactos/sdk/lib/crt/string/wtof.c b/reactos/sdk/lib/crt/string/wtof.c
new file mode 100644 (file)
index 0000000..5906bac
--- /dev/null
@@ -0,0 +1,10 @@
+#include <precomp.h>
+
+/*
+ * @implemented
+ */
+double
+_wtof(const wchar_t *str)
+{
+  return wcstod(str, 0);
+}