sdlGetenv function
extern DECLSPEC char *SDLCALL SDL_getenv(const char *name)
Implementation
Pointer<Int8> sdlGetenv(String? name) {
final sdlGetenvLookupFunction = libSdl2.lookupFunction<
Pointer<Int8> Function(Pointer<Utf8> name),
Pointer<Int8> Function(Pointer<Utf8> name)>('SDL_getenv');
final namePointer = name != null ? name.toNativeUtf8() : nullptr;
final result = sdlGetenvLookupFunction(namePointer);
calloc.free(namePointer);
return result;
}