diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-16 02:27:24 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-16 02:27:24 +0000 |
commit | 39c36b524f83cae7c64bdd2d91c59f30d9cb6243 (patch) | |
tree | 3a5f790604219213666cbf5cccd747c02528912c /libbb | |
parent | 2ec77e221f3354928e99e307932dc4ae812dc433 (diff) | |
download | busybox-w32-39c36b524f83cae7c64bdd2d91c59f30d9cb6243.tar.gz busybox-w32-39c36b524f83cae7c64bdd2d91c59f30d9cb6243.tar.bz2 busybox-w32-39c36b524f83cae7c64bdd2d91c59f30d9cb6243.zip |
svlogd: new applet. +9k. Still too big, but it was 12k yesterday.
git-svn-id: svn://busybox.net/trunk/busybox@16535 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xatol.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/xatol.c b/libbb/xatol.c index 74a3b9917..cce8ad3eb 100644 --- a/libbb/xatol.c +++ b/libbb/xatol.c | |||
@@ -195,6 +195,16 @@ long xatol(const char *numstr) | |||
195 | 195 | ||
196 | /* Others */ | 196 | /* Others */ |
197 | 197 | ||
198 | unsigned xatou_range(const char *numstr, unsigned lower, unsigned upper) | ||
199 | { | ||
200 | return xstrtoul_range_sfx(numstr, 10, lower, upper, NULL); | ||
201 | } | ||
202 | |||
203 | unsigned xatou_sfx(const char *numstr, const struct suffix_mult *suffixes) | ||
204 | { | ||
205 | return xstrtoul_range_sfx(numstr, 10, 0, UINT_MAX, suffixes); | ||
206 | } | ||
207 | |||
198 | unsigned xatou(const char *numstr) | 208 | unsigned xatou(const char *numstr) |
199 | { | 209 | { |
200 | return xatoul_range(numstr, 0, UINT_MAX); | 210 | return xatoul_range(numstr, 0, UINT_MAX); |