SDL_atof - Man Page
Parse a double from a string.
Header File
Defined in SDL3/SDL_stdinc.h
Synopsis
#include "SDL3/SDL.h" double SDL_atof(const char *str);
Description
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.
See Also
·(3), SDL_atoi(3), ·(3), SDL_strtol(3), ·(3), SDL_strtoul(3), ·(3), SDL_strtoll(3), ·(3), SDL_strtoull(3), ·(3), SDL_strtod(3)
Referenced By
SDL_atoi(3), SDL_strtod(3), SDL_strtol(3), SDL_strtoll(3), SDL_strtoul(3), SDL_strtoull(3).
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS