Function
GLibenviron_getenv
Description
Returns the value of the environment variable variable
in the
provided list envp
.
Available since: | 2.32 |
Parameters
envp |
An array of filename |
|
|
The argument can be NULL . | |
The array must be NULL -terminated. | |
The data is owned by the caller of the function. | |
Each element is a file system path, using the OS encoding. | |
variable |
const gchar* |
The environment variable to get. |
|
The data is owned by the caller of the function. | |
The value is a file system path, using the OS encoding. |
Return value
Returns: | const gchar* |
The value of the environment variable, or |
|
The data is owned by the called function. | |
The return value can be NULL . | |
The value is a file system path, using the OS encoding. |