summaryrefslogtreecommitdiffstats
path: root/nuttx/include/stdlib.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-06-14 15:36:18 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-06-14 15:36:18 +0000
commitc30c37626100bfac999c5ce3deb489e4e0d8f7f9 (patch)
treeb58f7a0c1a757afd69497ec1acd90d07ef722701 /nuttx/include/stdlib.h
parentfac950dda33b89c4a02e5f8bfa07f63cccd0eb9e (diff)
Add strtoul, strtoll, strtoull, atol, and atoll.
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1883 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/stdlib.h')
-rw-r--r--nuttx/include/stdlib.h14
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 */