summaryrefslogtreecommitdiff
path: root/src/wchar/wcstol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/wcstol.c')
-rw-r--r--src/wchar/wcstol.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/wchar/wcstol.c b/src/wchar/wcstol.c
index 5d4a605d..d349ee9c 100644
--- a/src/wchar/wcstol.c
+++ b/src/wchar/wcstol.c
@@ -1,9 +1,16 @@
#include <wchar.h>
+#include "limits.h"
+#include "errno.h"
long int wcstol(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base)
{
- (void)nptr; (void)endptr; (void)base;
- return 0L;
+ long int ret = 0;
+ long int max = LONG_MAX;
+ long int min = LONG_MIN;
+
+ #include "../stdlib/_strtoi.h"
+
+ return ret;
}
/*