Parse a double
from a string.
Defined in <SDL3/SDL_stdinc.h>
double SDL_strtod(const char *str, char **endp);
const char * | str | The null-terminated string to read. Must not be NULL. |
char ** | endp | If not NULL, the address of the first invalid character (i.e. the next character after the parsed number) will be written to this pointer. |
(double) Returns The parsed double
, or 0 if no number could be parsed.
This function makes fewer guarantees than the C runtime strtod
:
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.