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

SDL_GetEnvironmentVariable - Get the value of a variable in the environment.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

env    the environment to query.

       name   the name of the variable to get.

Header File

       Defined in SDL3/SDL_stdinc.h

Name

       SDL_GetEnvironmentVariable - Get the value of a variable in the environment.

Return Value

       Returns a pointer to the value of the variable or NULL if it can't be found.

See Also

(3),  SDL_GetEnvironment(3), (3), SDL_CreateEnvironment(3), (3), SDL_GetEnvironmentVariables(3), (3),
       SDL_SetEnvironmentVariable(3), (3), SDL_UnsetEnvironmentVariable(3)

Simple Directmedia Layer                           SDL 3.2.10                      SDL_GetEnvironmentVariable(3)

Synopsis

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

Thread Safety

       It is safe to call this function from any thread.

See Also