Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
Go to the source code of this file.
Functions | |
int | atoi (const char *str) |
Interprets an integer value in a byte string pointed to by str. More... | |
int atoi | ( | const char * | str | ) |
Interprets an integer value in a byte string pointed to by str.
Interprets an integer value in a byte string pointed to by str. Discards any whitespace characters until the first non-whitespace character is found, then takes as many characters as possible to form a valid integer number representation and converts them to an integer value. The valid integer value consists of the following parts: a) (optional) plus or minus sign b) numeric digits
str | pointer to the null-terminated byte string to be interpreted |
Definition at line 5 of file atoi.c.
References isdigit().