environUnsetenv

fun environUnsetenv(envp: List<String>? = null, variable: String): List<String>

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

Return

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

Since

2.32

Parameters

envp
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

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