SDL_GetEnvironmentVariables(3)

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.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.