diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xatol.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/xatol.c b/libbb/xatol.c index 82250a7..3316c3d 100644 --- a/libbb/xatol.c +++ b/libbb/xatol.c @@ -189,6 +189,11 @@ unsigned xatou(const char *numstr) return xatoul_range(numstr, 0, UINT_MAX); } +int xatoi_range(const char *numstr, int lower, int upper) +{ + return xatol_range(numstr, lower, upper); +} + int xatoi(const char *numstr) { return xatol_range(numstr, INT_MIN, INT_MAX); |