aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-25 14:44:13 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-25 14:44:13 +0000
commitbb46b0d3a8f514681e03265bba58faff4bde89c1 (patch)
tree70735d4bd1e34de43aa3f8092446caf460bd2540 /include/libbb.h
parent47ae536e1abbaa3622d5cbba374169b268070531 (diff)
downloadbusybox-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.h35
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};
318unsigned long long xstrtoull(const char *numstr, int base); 318#include "xatonum.h"
319unsigned long long xatoull(const char *numstr);
320unsigned long xstrtoul_range_sfx(const char *numstr, int base,
321 unsigned long lower,
322 unsigned long upper,
323 const struct suffix_mult *suffixes);
324unsigned long xstrtoul_range(const char *numstr, int base,
325 unsigned long lower,
326 unsigned long upper);
327unsigned long xstrtoul_sfx(const char *numstr, int base,
328 const struct suffix_mult *suffixes);
329unsigned long xstrtoul(const char *numstr, int base);
330unsigned long xatoul_range_sfx(const char *numstr,
331 unsigned long lower,
332 unsigned long upper,
333 const struct suffix_mult *suffixes);
334unsigned long xatoul_sfx(const char *numstr,
335 const struct suffix_mult *suffixes);
336unsigned long xatoul_range(const char *numstr,
337 unsigned long lower,
338 unsigned long upper);
339unsigned long xatoul(const char *numstr);
340long xstrtol_range_sfx(const char *numstr, int base,
341 long lower,
342 long upper,
343 const struct suffix_mult *suffixes);
344long xstrtol_range(const char *numstr, int base, long lower, long upper);
345long xatol_range_sfx(const char *numstr,
346 long lower,
347 long upper,
348 const struct suffix_mult *suffixes);
349long xatol_range(const char *numstr, long lower, long upper);
350long xatol_sfx(const char *numstr, const struct suffix_mult *suffixes);
351long xatol(const char *numstr);
352/* Specialized: */ 319/* Specialized: */
353unsigned xatou_range(const char *numstr, unsigned lower, unsigned upper); 320unsigned xatou_range(const char *numstr, unsigned lower, unsigned upper);
354unsigned xatou_sfx(const char *numstr, const struct suffix_mult *suffixes); 321unsigned xatou_sfx(const char *numstr, const struct suffix_mult *suffixes);