SDL_CreateEnvironment

Function SDL_CreateEnvironment 

Source
pub unsafe extern "C" fn SDL_CreateEnvironment(
    populated: bool,
) -> *mut SDL_Environment
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.

§See also