logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_atof - Parse a double from a string.

Availability

       This function is available since SDL 3.2.0.

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.

Name

       SDL_atof - Parse a double from a string.

Return Value

       Returns the parsed double.

See Also

SDL_atoi(3), SDL_strtol(3), SDL_strtoul(3), SDL_strtoll(3), SDL_strtoull(3), SDL_strtod(3)

Simple Directmedia Layer                           SDL 3.2.20                                        SDL_atof(3)

Synopsis

#include<SDL3/SDL_stdinc.h>doubleSDL_atof(constchar*str);

Thread Safety

       It is safe to call this function from any thread.

See Also