mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
Add prototypes for safe_strtol and friends
This commit is contained in:
parent
08f59e32c1
commit
3cac0c7d7f
@ -188,7 +188,11 @@ extern void *xcalloc(size_t nmemb, size_t size);
|
|||||||
#endif
|
#endif
|
||||||
extern char *bb_xstrdup (const char *s);
|
extern char *bb_xstrdup (const char *s);
|
||||||
extern char *bb_xstrndup (const char *s, int n);
|
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 {
|
struct suffix_mult {
|
||||||
const char *suffix;
|
const char *suffix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user