summaryrefslogtreecommitdiff
path: root/libbb/xatol.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-08 23:36:17 +0000
committerDenis Vlasenko2006-10-08 23:36:17 +0000
commitca3c981c07ade7f8fd50ba4bb452a2fadaddc326 (patch)
tree8763d9f89197adda0ef45ac57418743766345fe4 /libbb/xatol.c
parent7039a66b58706457c7423de60556e04545432943 (diff)
downloadbusybox-ca3c981c07ade7f8fd50ba4bb452a2fadaddc326.zip
busybox-ca3c981c07ade7f8fd50ba4bb452a2fadaddc326.tar.gz
start_stop_daemon: add -N <nice> compat
[re]nice: add support for -nNNN w/o spaces, -NNN (nice only), simplified code
Diffstat (limited to 'libbb/xatol.c')
-rw-r--r--libbb/xatol.c5
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);