mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Merged in paulpatience/nuttx/atoi (pull request #35)
atoi(): Cast return value to int
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ unsigned long long strtoull(const char *, char **, int);
|
|||||||
#endif
|
#endif
|
||||||
double_t strtod(const char *, char **);
|
double_t strtod(const char *, char **);
|
||||||
|
|
||||||
#define atoi(nptr) strtol((nptr), NULL, 10)
|
#define atoi(nptr) ((int)strtol((nptr), NULL, 10))
|
||||||
#define atol(nptr) strtol((nptr), NULL, 10)
|
#define atol(nptr) strtol((nptr), NULL, 10)
|
||||||
#ifdef CONFIG_HAVE_LONG_LONG
|
#ifdef CONFIG_HAVE_LONG_LONG
|
||||||
#define atoll(nptr) strtoll((nptr), NULL, 10)
|
#define atoll(nptr) strtoll((nptr), NULL, 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user