Util.environUnsetenv

Removes the environment variable @variable from the provided environment @envp.

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

Parameters

envp string[]

an environment list that can be freed using g_strfreev() (e.g., as returned from g_get_environ()), or %NULL for an empty environment list

variable string

the environment variable to remove, must not contain '='

Return Value

Type: string[]

the updated environment list. Free it using g_strfreev().

Meta

Since

2.32