From 78722ef403ffadcb78917e93e1859d43b9bf9df5 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 6 Dec 2017 03:18:58 +0000 Subject: stdlib: add __strtol_internal Signed-off-by: Samuel Holland --- libgcompat/stdlib.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libgcompat/stdlib.c b/libgcompat/stdlib.c index c1eaa92..a08f914 100644 --- a/libgcompat/stdlib.c +++ b/libgcompat/stdlib.c @@ -59,6 +59,16 @@ float __strtof_internal(const char *nptr, char **endptr, int group) return strtof(nptr, endptr); } +/** + * 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. * -- cgit v1.2.3-70-g09d2