summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgcompat/wchar.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c
index 7ac36f6..c017582 100644
--- a/libgcompat/wchar.c
+++ b/libgcompat/wchar.c
@@ -103,3 +103,14 @@ long int __wcstol_internal(const wchar_t *nptr, wchar_t **endptr, int base,
assert(group == 0);
return wcstol(nptr, endptr, base);
}
+
+/**
+ * Convert a wide-character string to an unsigned long int.
+ *
+ * Some day, when musl supports LC_NUMERIC, we can probably remove this.
+ */
+unsigned long int wcstoul_l(const wchar_t *nptr, wchar_t **endptr,
+ int base, locale_t loc)
+{
+ return wcstoul(nptr, endptr, base);
+}