get_variable
Description:
[ Version ( since = "2.32" ) ]
[ CCode ( cname = "g_environ_getenv" ) ]
public unowned string? get_variable (string[]? envp, string variable)
[ CCode ( cname = "g_environ_getenv" ) ]
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 |
Returns:
the value of the environment variable, or null if the environment variable is not set in |
Namespace: GLib.Environ
Package: glib-2.0