Util.environGetenv

Returns the value of the environment variable @variable in the provided list @envp.

struct Util
static
string
environGetenv
(
string[] envp
,
string variable
)

Parameters

envp string[]

an environment list (eg, as returned from g_get_environ()), or %NULL for an empty environment list

variable string

the environment variable to get

Return Value

Type: string

the value of the environment variable, or %NULL if the environment variable is not set in @envp. The returned string is owned by @envp, and will be freed if @variable is set or unset again.

Meta

Since

2.32