unset_variable


Description:

[ Version ( since = "2.32" ) ]
[ CCode ( array_length = false , array_null_terminated = true , cname = "g_environ_unsetenv" ) ]
public string[] unset_variable (owned string[]? envp, string variable)

Removes the environment variable variable from the provided environment envp.

Parameters:

envp

an environment list that can be freed using strfreev (e.g., as returned from @get), or null for an empty environment list

variable

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

Returns:

the updated environment list. Free it using strfreev.


Namespace: GLib.Environ
Package: glib-2.0