Function stdio_atoi
Defined in File stdio.h
Function Documentation
-
int stdio_atoi(const char *s, int base)
Convert a string to a integer.
Convert a string representing an integer in the specified base. Any leading whitespace is stripped. If the string is a hex number, it must have a 0x prefix. If the string represents a hex number but does not have a 0x prefix, the result is undefined.
- Todo:
This does not currently work if the string to be converted is INT_MIN.
- Parameters:
s – The string to convert
base – The base the string is in (10, 16, etc.)
- Returns:
The converted result.