logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Function 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.

Name

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

Return Value

       Returns 0 on success, -1 on error.

See Also

SDL_SetEnvironmentVariable(3)

Simple Directmedia Layer                           SDL 3.2.20                               SDL_setenv_unsafe(3)

Synopsis

#include<SDL3/SDL_stdinc.h>intSDL_setenv_unsafe(constchar*name,constchar*value,intoverwrite);

Thread Safety

       This function is not thread safe, consider using SDL_SetEnvironmentVariable() instead.

See Also