SDL_atoi(3)

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.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.