diff options
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 27c0a5885..622d5ce38 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -57,6 +57,8 @@ extern int qsort __P ((char *base, int num, int size, int (*cmp)())); extern char * gcvt __P ((float number, size_t ndigit, char * buf)); #define atof(x) strtod((x),(char**)0) +#define atoi(x) (int)strtol((x),(char**)0,10) +#define atol(x) strtol((x),(char**)0,10) /* Returned by `div'. */ typedef struct |