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