Function SDL_GetEnvironmentVariables
pub unsafe extern "C" fn SDL_GetEnvironmentVariables(
env: *mut SDL_Environment,
) -> *mut *mut i8
Available on crate feature
dep_sdl3
only.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.