diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-14 15:36:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-14 15:36:18 +0000 |
commit | 6ee68a773a24586f6e6cfaccdf7dce064d213e88 (patch) | |
tree | b58f7a0c1a757afd69497ec1acd90d07ef722701 /nuttx/include/stdlib.h | |
parent | e1c5f0014d78d36039793087273d4f2925134eaf (diff) | |
download | px4-nuttx-6ee68a773a24586f6e6cfaccdf7dce064d213e88.tar.gz px4-nuttx-6ee68a773a24586f6e6cfaccdf7dce064d213e88.tar.bz2 px4-nuttx-6ee68a773a24586f6e6cfaccdf7dce064d213e88.zip |
Add strtoul, strtoll, strtoull, atol, and atoll.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1883 42af7a65-404d-4744-a932-0658087f49c3
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 92437a574..645998754 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 */ |