diff options
author | Denis Vlasenko | 2006-11-25 14:44:13 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-25 14:44:13 +0000 |
commit | ed836cdc30642ddbecc286b279d461ca44135cbb (patch) | |
tree | 70735d4bd1e34de43aa3f8092446caf460bd2540 /include/libbb.h | |
parent | 809a6e310443d0b5010c8b293cab0160608c1b02 (diff) | |
download | busybox-ed836cdc30642ddbecc286b279d461ca44135cbb.zip busybox-ed836cdc30642ddbecc286b279d461ca44135cbb.tar.gz |
regularize str -> num convertors
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/include/libbb.h b/include/libbb.h index 99a1928..152fb7e 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -315,40 +315,7 @@ struct suffix_mult { const char *suffix; unsigned mult; }; -unsigned long long xstrtoull(const char *numstr, int base); -unsigned long long xatoull(const char *numstr); -unsigned long xstrtoul_range_sfx(const char *numstr, int base, - unsigned long lower, - unsigned long upper, - const struct suffix_mult *suffixes); -unsigned long xstrtoul_range(const char *numstr, int base, - unsigned long lower, - unsigned long upper); -unsigned long xstrtoul_sfx(const char *numstr, int base, - const struct suffix_mult *suffixes); -unsigned long xstrtoul(const char *numstr, int base); -unsigned long xatoul_range_sfx(const char *numstr, - unsigned long lower, - unsigned long upper, - const struct suffix_mult *suffixes); -unsigned long xatoul_sfx(const char *numstr, - const struct suffix_mult *suffixes); -unsigned long xatoul_range(const char *numstr, - unsigned long lower, - unsigned long upper); -unsigned long xatoul(const char *numstr); -long xstrtol_range_sfx(const char *numstr, int base, - long lower, - long upper, - const struct suffix_mult *suffixes); -long xstrtol_range(const char *numstr, int base, long lower, long upper); -long xatol_range_sfx(const char *numstr, - long lower, - long upper, - const struct suffix_mult *suffixes); -long xatol_range(const char *numstr, long lower, long upper); -long xatol_sfx(const char *numstr, const struct suffix_mult *suffixes); -long xatol(const char *numstr); +#include "xatonum.h" /* Specialized: */ unsigned xatou_range(const char *numstr, unsigned lower, unsigned upper); unsigned xatou_sfx(const char *numstr, const struct suffix_mult *suffixes); |