environGetenv

fnstring environGetenv(string[] envp, string variable)

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

Parameters

envpan environment list (eg, as returned from [glib.global.getEnviron]), or null for an empty environment list
variablethe environment variable to get

Returns

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.