mirror of
https://github.com/apache/nuttx.git
synced 2026-08-05 06:10:27 +00:00
atoi(): Cast return value to int
This commit is contained in:
parent
432395218a
commit
706218d18f
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ unsigned long long strtoull(const char *, char **, int);
|
|||
#endif
|
||||
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)
|
||||
#ifdef CONFIG_HAVE_LONG_LONG
|
||||
#define atoll(nptr) strtoll((nptr), NULL, 10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue