diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-12-06 03:18:58 +0000 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-15 00:43:50 -0600 |
commit | 78722ef403ffadcb78917e93e1859d43b9bf9df5 (patch) | |
tree | 7aaae7c04fcf06aea85505fc028f476a131b9c50 | |
parent | 6d391f9ef2d2588ae2faf0efb73bd1ac934b063a (diff) | |
download | gcompat-78722ef403ffadcb78917e93e1859d43b9bf9df5.tar.gz gcompat-78722ef403ffadcb78917e93e1859d43b9bf9df5.tar.bz2 gcompat-78722ef403ffadcb78917e93e1859d43b9bf9df5.tar.xz gcompat-78722ef403ffadcb78917e93e1859d43b9bf9df5.zip |
stdlib: add __strtol_internal
Signed-off-by: Samuel Holland <samuel@sholland.org>
-rw-r--r-- | libgcompat/stdlib.c | 10 |
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." |