Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
Go to the source code of this file.
Functions | |
long | atol (const char *str) |
Interprets a Long value in a byte string pointed to by str. More... | |
long atol | ( | const char * | str | ) |
Interprets a Long value in a byte string pointed to by str.
Interprets a Long 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 long number representation and converts them to an long value. The valid Long 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 atol.c.