sdlGetEnvironmentVariables function
Get all variables in the environment.
\param env the environment to query. \returns a NULL terminated array of pointers to environment variables in the form "variable=value" or NULL on failure; call SDL_GetError() for more information. This is a single allocation that should be freed with SDL_free() when it is no longer needed.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_GetEnvironment \sa SDL_CreateEnvironment \sa SDL_GetEnvironmentVariables \sa SDL_SetEnvironmentVariable \sa SDL_UnsetEnvironmentVariable
extern SDL_DECLSPEC char ** SDLCALL SDL_GetEnvironmentVariables(SDL_Environment *env)
Implementation
Pointer<Pointer<Int8>> sdlGetEnvironmentVariables(Pointer<SdlEnvironment> env) {
final sdlGetEnvironmentVariablesLookupFunction = libSdl3.lookupFunction<
Pointer<Pointer<Int8>> Function(Pointer<SdlEnvironment> env),
Pointer<Pointer<Int8>> Function(
Pointer<SdlEnvironment> env)>('SDL_GetEnvironmentVariables');
return sdlGetEnvironmentVariablesLookupFunction(env);
}