目次 - SDL 3.0 API(機能別) - 標準ライブラリ - SDL_GetEnvironmentVariables

SDL_GetEnvironmentVariables

環境変数セットから全ての環境変数の値を得る

ヘッダ

SDL3/SDL_stdinc.h

構文

char ** SDL_GetEnvironmentVariables(SDL_Environment *env);

引数

SDL_Environment *env問い合わせる環境変数セット

戻り値

(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. "variable=value"形式の環境変数のNULL終端の配列を戻す. 失敗のときNULLを戻す. SDL_GetError()を呼んで詳細を知ることができる. これは不要になったときSDL_free()で解放する必要がある.

スレッドセーフ

この関数はどのスレッドからも安全に呼べる.

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GetEnvironmentVariables - SDL Wiki