diff options
author | Denis Vlasenko | 2006-10-08 23:36:17 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-08 23:36:17 +0000 |
commit | ca3c981c07ade7f8fd50ba4bb452a2fadaddc326 (patch) | |
tree | 8763d9f89197adda0ef45ac57418743766345fe4 /libbb | |
parent | 7039a66b58706457c7423de60556e04545432943 (diff) | |
download | busybox-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')
-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); |