Util.environUnsetenv

Removes the environment variable variable from the provided environment envp. Since 2.32

class 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. [allow-none][array zero-terminated=1][transfer full]

variable string

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

Return Value

Type: string[]

the updated environment list. Free it using g_strfreev(). [array zero-terminated=1][transfer full]

Meta