Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

SDL_SetEnvironmentVariable - Set the value of a variable in the environment.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

env    the environment to modify.

       name   the name of the variable to set.

       value  the value of the variable to set.

       overwrite
              true  to overwrite the variable if it exists, false to return success without setting the variable
              if it already exists.

Header File

       Defined in SDL3/SDL_stdinc.h

Name

       SDL_SetEnvironmentVariable - Set the value of a variable in the environment.

Return Value

       Returns true on success or false on failure; call

       SDL_GetError () for more information.

See Also

•(3), SDL_GetEnvironment(3), •(3), SDL_CreateEnvironment(3), •(3),  SDL_GetEnvironmentVariable(3),  •(3),
       SDL_GetEnvironmentVariables(3), •(3), SDL_UnsetEnvironmentVariable(3)

Simple Directmedia Layer                           SDL 3.2.10                      SDL_SetEnvironmentVariable(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_SetEnvironmentVariable(SDL_Environment*env,constchar*name,constchar*value,booloverwrite);

Thread Safety

       It is safe to call this function from any thread.

See Also