Function SDL_atof
pub unsafe extern "C" fn SDL_atof(str: *const i8) -> f64 ⓘ
Available on crate feature
dep_sdl3
only.Expand description
Parse a double
from a string.
The result of calling SDL_atof(str)
is equivalent to SDL_strtod(str, NULL)
.
§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.