SDL_GetEnvironmentVariables3
Get all variables in the environment.
Usage
#include "SDL3/SDL.h"
char ** SDL_GetEnvironmentVariables(SDL_Environment *env);
Header file
Defined in SDL3/SDL_stdinc.h
Function parameters
- env
-
the environment to query.
Return value
(char ) Returns a NULL terminated array of pointers to environment variables in the form "variable=value" or NULL on failure; call
SDL_GetError () for more information. This is a single allocation that should be freed with SDL_free () when it is no longer needed.
Thread safety
It is safe to call this function from any thread.