summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xatol.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbb/xatol.c b/libbb/xatol.c
index 1b71e9c..1b281b1 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);