Parse an int
from a string.
Defined in <SDL3/SDL_stdinc.h>
int SDL_atoi(const char *str);
const char * | str | The null-terminated string to read. Must not be NULL. |
(int) Returns The parsed int
.
The result of calling SDL_atoi(str)
is equivalent to (int)SDL_strtol(str, NULL, 10)
.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.