Function SDL_setenv_unsafe
pub unsafe extern "C" fn SDL_setenv_unsafe(
name: *const i8,
value: *const i8,
overwrite: i32,
) -> i32
Available on crate feature
dep_sdl3
only.Expand description
Set the value of a variable in the environment.
§Parameters
name
: the name of the variable to set.value
: the value of the variable to set.overwrite
: 1 to overwrite the variable if it exists, 0 to return success without setting the variable if it already exists.
§Return value
Returns 0 on success, -1 on error.
§Thread safety
This function is not thread safe, consider using
SDL_SetEnvironmentVariable()
instead.
§Availability
This function is available since SDL 3.2.0.