MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_strtod

Function SDL_strtod

deps/SDL2/src/stdlib/SDL_string.c:960–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960double
961SDL_strtod(const char *string, char **endp)
962{
963#if defined(HAVE_STRTOD)
964 return strtod(string, endp);
965#else
966 size_t len;
967 double value = 0.0;
968
969 len = SDL_ScanFloat(string, &value);
970 if (endp) {
971 *endp = (char *) string + len;
972 }
973 return value;
974#endif /* HAVE_STRTOD */
975}
976
977int
978SDL_strcmp(const char *str1, const char *str2)

Callers 2

GetDisplayNumberFunction · 0.85
SDL_atofFunction · 0.85

Calls 1

SDL_ScanFloatFunction · 0.85

Tested by

no test coverage detected