Function SDL_CreateEnvironment
pub unsafe extern "C" fn SDL_CreateEnvironment(
populated: bool,
) -> *mut SDL_Environment
Available on crate feature
dep_sdl3
only.Expand description
Create a set of environment variables
§Parameters
populated
: true to initialize it from the C runtime environment, false to create an empty environment.
§Return value
Returns a pointer to the new environment or NULL on failure; call
[SDL_GetError()
] for more information.
§Thread safety
If populated
is false, it is safe to call this function
from any thread, otherwise it is safe if no other threads are
calling setenv() or unsetenv()
§Availability
This function is available since SDL 3.2.0.