SDL_atoi3
Parse an int from a string.
Usage
#include "SDL3/SDL.h"
int SDL_atoi(const char *str);
Header file
Defined in SDL3/SDL_stdinc.h
Overview
The result of calling SDL_atoi(str) is equivalent to (int)SDL_strtol(str,NULL,10) .
Function parameters
- str
-
The null-terminated string to read. Must not be NULL.
Return value
Returns the parsed int .
Thread safety
It is safe to call this function from any thread.