get_variable


Description:

public unowned string? get_variable (string[]? envp, string variable)

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

Parameters:

envp

an environment list (eg, as returned from @get), or null for an empty environment list

variable

the environment variable to get, in the GLib file name encoding

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.


Namespace: GLib.Environ
Package: glib-2.0