SDL_SetEnvironmentVariable

Set the value of a variable in the environment.

\param env the environment to modify. \param name the name of the variable to set. \param value the value of the variable to set. \param overwrite true to overwrite the variable if it exists, false to return success without setting the variable if it already exists. \returns true on success or false on failure; call SDL_GetError() for more information.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.2.0.

\sa SDL_GetEnvironment \sa SDL_CreateEnvironment \sa SDL_GetEnvironmentVariable \sa SDL_GetEnvironmentVariables \sa SDL_UnsetEnvironmentVariable

extern (C) nothrow @nogc extern
bool
SDL_SetEnvironmentVariable
(,
const(char)* name
,
const(char)* value
,)

Meta