diff options
Diffstat (limited to 'libbb/xatol.c')
-rw-r--r-- | libbb/xatol.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbb/xatol.c b/libbb/xatol.c index 1b71e9ca8..1b281b1e9 100644 --- a/libbb/xatol.c +++ b/libbb/xatol.c @@ -98,6 +98,12 @@ unsigned long xstrtoul_range(const char *numstr, int base, return xstrtoul_range_sfx(numstr, base, lower, upper, NULL); } +unsigned long xstrtoul_sfx(const char *numstr, int base, + const struct suffix_mult *suffixes) +{ + return xstrtoul_range_sfx(numstr, base, 0, ULONG_MAX, suffixes); +} + unsigned long xstrtoul(const char *numstr, int base) { return xstrtoul_range_sfx(numstr, base, 0, ULONG_MAX, NULL); |