environGetenv

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

string
environGetenv
(
string[] envp
,
string variable
)

Parameters

envp string[]

an environment list (eg, as returned from glib.global.getEnviron), 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.