From: Eric Andersen Date: Fri, 12 Mar 2004 22:08:13 +0000 (-0000) Subject: Add prototypes for safe_strtol and friends X-Git-Tag: 1_00_pre9~71 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3cac0c7d7ff9bade9aaeff6e3144dcc2fed903b3;p=oweals%2Fbusybox.git Add prototypes for safe_strtol and friends --- diff --git a/include/libbb.h b/include/libbb.h index 61888042d..7814c4b8e 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;