SDL_atof(3)

SDL_atof3

Parse a double from a string.

Usage

#include "SDL3/SDL.h"

double SDL_atof(const char *str);

Header file

Defined in SDL3/SDL_stdinc.h

Overview

The result of calling SDL_atof(str) is equivalent to SDL_strtod(str, NULL) .

Function parameters

str

The null-terminated string to read. Must not be NULL.

Return value

Returns the parsed double .

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.