summaryrefslogtreecommitdiff
path: root/libgcompat/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/stdlib.c')
-rw-r--r--libgcompat/stdlib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgcompat/stdlib.c b/libgcompat/stdlib.c
index c1eaa92..a08f914 100644
--- a/libgcompat/stdlib.c
+++ b/libgcompat/stdlib.c
@@ -60,6 +60,16 @@ float __strtof_internal(const char *nptr, char **endptr, int group)
}
/**
+ * Underlying function for strtol.
+ */
+long __strtol_internal(const char *nptr, char **endptr, int base, int group)
+{
+ assert(group == 0);
+
+ return strtol(nptr, endptr, base);
+}
+
+/**
* Underlying function for strtold.
*
* "__group shall be 0 or the behavior of __strtold_internal() is undefined."