sdlStrtod function
extern DECLSPEC double SDLCALL SDL_strtod(const char *str, char **endp)
Implementation
double sdlStrtod(String? str, Pointer<Pointer<Int8>> endp) {
final sdlStrtodLookupFunction = libSdl2.lookupFunction<
Double Function(Pointer<Utf8> str, Pointer<Pointer<Int8>> endp),
double Function(
Pointer<Utf8> str, Pointer<Pointer<Int8>> endp)>('SDL_strtod');
final strPointer = str != null ? str.toNativeUtf8() : nullptr;
final result = sdlStrtodLookupFunction(strPointer, endp);
calloc.free(strPointer);
return result;
}