diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-25 14:44:13 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-25 14:44:13 +0000 |
commit | bb46b0d3a8f514681e03265bba58faff4bde89c1 (patch) | |
tree | 70735d4bd1e34de43aa3f8092446caf460bd2540 /include/libbb.h | |
parent | 47ae536e1abbaa3622d5cbba374169b268070531 (diff) | |
download | busybox-w32-bb46b0d3a8f514681e03265bba58faff4bde89c1.tar.gz busybox-w32-bb46b0d3a8f514681e03265bba58faff4bde89c1.tar.bz2 busybox-w32-bb46b0d3a8f514681e03265bba58faff4bde89c1.zip |
regularize str -> num convertors
git-svn-id: svn://busybox.net/trunk/busybox@16664 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 99a1928df..152fb7e01 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -315,40 +315,7 @@ struct suffix_mult { | |||
315 | const char *suffix; | 315 | const char *suffix; |
316 | unsigned mult; | 316 | unsigned mult; |
317 | }; | 317 | }; |
318 | unsigned long long xstrtoull(const char *numstr, int base); | 318 | #include "xatonum.h" |
319 | unsigned long long xatoull(const char *numstr); | ||
320 | unsigned long xstrtoul_range_sfx(const char *numstr, int base, | ||
321 | unsigned long lower, | ||
322 | unsigned long upper, | ||
323 | const struct suffix_mult *suffixes); | ||
324 | unsigned long xstrtoul_range(const char *numstr, int base, | ||
325 | unsigned long lower, | ||
326 | unsigned long upper); | ||
327 | unsigned long xstrtoul_sfx(const char *numstr, int base, | ||
328 | const struct suffix_mult *suffixes); | ||
329 | unsigned long xstrtoul(const char *numstr, int base); | ||
330 | unsigned long xatoul_range_sfx(const char *numstr, | ||
331 | unsigned long lower, | ||
332 | unsigned long upper, | ||
333 | const struct suffix_mult *suffixes); | ||
334 | unsigned long xatoul_sfx(const char *numstr, | ||
335 | const struct suffix_mult *suffixes); | ||
336 | unsigned long xatoul_range(const char *numstr, | ||
337 | unsigned long lower, | ||
338 | unsigned long upper); | ||
339 | unsigned long xatoul(const char *numstr); | ||
340 | long xstrtol_range_sfx(const char *numstr, int base, | ||
341 | long lower, | ||
342 | long upper, | ||
343 | const struct suffix_mult *suffixes); | ||
344 | long xstrtol_range(const char *numstr, int base, long lower, long upper); | ||
345 | long xatol_range_sfx(const char *numstr, | ||
346 | long lower, | ||
347 | long upper, | ||
348 | const struct suffix_mult *suffixes); | ||
349 | long xatol_range(const char *numstr, long lower, long upper); | ||
350 | long xatol_sfx(const char *numstr, const struct suffix_mult *suffixes); | ||
351 | long xatol(const char *numstr); | ||
352 | /* Specialized: */ | 319 | /* Specialized: */ |
353 | unsigned xatou_range(const char *numstr, unsigned lower, unsigned upper); | 320 | unsigned xatou_range(const char *numstr, unsigned lower, unsigned upper); |
354 | unsigned xatou_sfx(const char *numstr, const struct suffix_mult *suffixes); | 321 | unsigned xatou_sfx(const char *numstr, const struct suffix_mult *suffixes); |