SDL_GetEnvironmentVariables

Function SDL_GetEnvironmentVariables 

Source
pub unsafe extern "C" fn SDL_GetEnvironmentVariables(
    env: *mut SDL_Environment,
) -> *mut *mut c_char
Expand description

Get all variables in the environment.

§Parameters

  • env: the environment to query.

§Return value

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.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also