diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-08-24 21:05:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-08-24 21:05:39 +0000 |
commit | fa5a15eeb283a27ea4f03ee581856930e60a7ca0 (patch) | |
tree | fcbc3b65c4653105ebc54f2c756851379add0237 /include/stdlib.h | |
parent | fb35042521e6e4b0dcee32ca7e0ce33b18f9523d (diff) |
atoi, atol, atoll, and atof are supposed to be functions, not macros.
-Erik
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index e5588cb3b..17afbe9d3 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -42,10 +42,10 @@ typedef __compar_fn_t comparison_fn_t; /* String to number conversion functions */ -#define atof(x) strtod((x),(char**)0) -#define atoi(x) (int)strtol((x),(char**)0,10) -#define atol(x) strtol((x),(char**)0,10) -#define atoll(x) strtoll((x),(char**)0,10) +extern double atof(const char *nptr); +extern int atoi(const char *nptr); +extern long atol(const char *nptr); +extern long long atoll(const char *nptr); extern long strtol __P ((const char * nptr, char ** endptr, int base)); extern unsigned long strtoul __P ((const char * nptr, char ** endptr, int base)); extern long long strtoll __P ((const char * nptr, char ** endptr, int base)); |