aboutsummaryrefslogtreecommitdiff
path: root/libbb/xatonum_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xatonum_template.c')
-rw-r--r--libbb/xatonum_template.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/xatonum_template.c b/libbb/xatonum_template.c
index 5e0bb59e6..339a7d35f 100644
--- a/libbb/xatonum_template.c
+++ b/libbb/xatonum_template.c
@@ -157,6 +157,11 @@ type FAST_FUNC xstrto(_range)(const char *numstr, int base, type lower, type upp
return xstrto(_range_sfx)(numstr, base, lower, upper, NULL);
}
+type FAST_FUNC xstrto()(const char *numstr, int base)
+{
+ return xstrto(_range_sfx)(numstr, base, XSTR_TYPE_MIN, XSTR_TYPE_MAX, NULL);
+}
+
type FAST_FUNC xato(_range_sfx)(const char *numstr,
type lower,
type upper,