summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-25 14:49:04 +0000
committerDenis Vlasenko2006-11-25 14:49:04 +0000
commit43bddf31e95080abf7232952da9064207636f47b (patch)
treebcd498d7eb67a83b49f55d881fedc8ff05d89fb5 /include/libbb.h
parentf2408e6c3ff5f9f798bb5553346d9e1657dc9833 (diff)
downloadbusybox-43bddf31e95080abf7232952da9064207636f47b.zip
busybox-43bddf31e95080abf7232952da9064207636f47b.tar.gz
small improvements in str -> num convertors
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 152fb7e..5cba279 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -317,17 +317,11 @@ struct suffix_mult {
};
#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);
-unsigned xatou(const char *numstr);
-int xatoi_range(const char *numstr, int lower, int upper);
-int xatoi(const char *numstr);
/* Using xatoi() instead of naive atoi() is not always convenient -
* in many places people want *non-negative* values, but store them
* in signed int. Therefore we need this one:
* dies if input is not in [0, INT_MAX] range. Also will reject '-0' etc */
int xatoi_u(const char *numstr);
-uint32_t xatou32(const char *numstr);
/* Useful for reading port numbers */
uint16_t xatou16(const char *numstr);