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 82250a7bb..3316c3d06 100644 --- a/libbb/xatol.c +++ b/libbb/xatol.c | |||
@@ -189,6 +189,11 @@ unsigned xatou(const char *numstr) | |||
189 | return xatoul_range(numstr, 0, UINT_MAX); | 189 | return xatoul_range(numstr, 0, UINT_MAX); |
190 | } | 190 | } |
191 | 191 | ||
192 | int xatoi_range(const char *numstr, int lower, int upper) | ||
193 | { | ||
194 | return xatol_range(numstr, lower, upper); | ||
195 | } | ||
196 | |||
192 | int xatoi(const char *numstr) | 197 | int xatoi(const char *numstr) |
193 | { | 198 | { |
194 | return xatol_range(numstr, INT_MIN, INT_MAX); | 199 | return xatol_range(numstr, INT_MIN, INT_MAX); |