summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2004-03-12 22:08:13 +0000
committerEric Andersen2004-03-12 22:08:13 +0000
commit3cac0c7d7ff9bade9aaeff6e3144dcc2fed903b3 (patch)
treee791586a04109d5b9cf02114d20a2e146b609c42
parent08f59e32c18520455bcc08849d4598286063ee46 (diff)
downloadbusybox-3cac0c7d7ff9bade9aaeff6e3144dcc2fed903b3.zip
busybox-3cac0c7d7ff9bade9aaeff6e3144dcc2fed903b3.tar.gz
Add prototypes for safe_strtol and friends
-rw-r--r--include/libbb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 6188804..7814c4b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -188,7 +188,11 @@ extern void *xcalloc(size_t nmemb, size_t size);
#endif
extern char *bb_xstrdup (const char *s);
extern char *bb_xstrndup (const char *s, int n);
-extern char * safe_strncpy(char *dst, const char *src, size_t size);
+extern char *safe_strncpy(char *dst, const char *src, size_t size);
+extern int safe_strtoi(char *arg, int* value);
+extern int safe_strtod(char *arg, double* value);
+extern int safe_strtol(char *arg, long* value);
+extern int safe_strtoul(char *arg, unsigned long* value);
struct suffix_mult {
const char *suffix;