logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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