diff options
Diffstat (limited to 'nuttx/include/stdlib.h')
-rw-r--r-- | nuttx/include/stdlib.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/nuttx/include/stdlib.h b/nuttx/include/stdlib.h index 92437a574c..6459987543 100644 --- a/nuttx/include/stdlib.h +++ b/nuttx/include/stdlib.h @@ -120,9 +120,19 @@ EXTERN int atexit(void (*func)(void)); /* String to binary conversions */ -#define atoi(nptr) strtol((nptr), (FAR char**)NULL, 10) EXTERN long strtol(const char *, char **, int); -EXTERN double_t strtod(const char *, char **); +EXTERN unsigned long strtoul(const char *, char **, int); +#ifdef CONFIG_HAVE_LONG_LONG +EXTERN long long strtoll(const char *, char **, int); +EXTERN unsigned long long strtoull(const char *, char **, int); +#endif +EXTERN double_t strtod(const char *, char **); + +#define atoi(nptr) strtol((nptr), NULL, 10); +#define atol(nptr) strtol((nptr), NULL, 10); +#ifdef CONFIG_HAVE_LONG_LONG +#define atoll(nptr) strtoll((nptr), NULL, 10); +#endif /* Memory Management */ |