Share more duplicated functions
[reactos.git] / reactos / lib / string / wtoi.c
similarity index 52%
rename from reactos/lib/ntdll/stdlib/wtoi.c
rename to reactos/lib/string/wtoi.c
index 7368ef8..6cfec56 100644 (file)
@@ -1,11 +1,11 @@
-/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
-#include <ntdll.h>
-
-/*
- * @implemented
- */
-int
-_wtoi(const wchar_t *str)
-{
-  return (int)wcstol(str, 0, 10);
-}
+#include <string.h>\r
+#include <stdlib.h>\r
+\r
+/*\r
+ * @implemented\r
+ */\r
+int\r
+_wtoi(const wchar_t *str)\r
+{\r
+  return (int)wcstol(str, 0, 10);\r
+}\r