Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_UnsetEnvironmentVariable - Clear a variable from 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 unset.

Header File

       Defined in SDL3/SDL_stdinc.h

Name

       SDL_UnsetEnvironmentVariable - Clear a variable from 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_SetEnvironmentVariable(3),            (3),
       SDL_UnsetEnvironmentVariable(3)

Simple Directmedia Layer                           SDL 3.2.10                    SDL_UnsetEnvironmentVariable(3)

Synopsis

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

Thread Safety

       It is safe to call this function from any thread.

See Also