Function
Birbenv_prepend
since: 0.3
Declaration [src]
gboolean
birb_env_prepend (
const char* variable,
const char* value,
const char* separator
)
Description [src]
Prepends a value to an environment variable with the given separator.
This is meant to be used to add an addition value to a multi-value
environment variable like PATH
, GI_TYPELIB_PATH
, etc
See the documentation for g_setenv()
for potential issues with this function.
Available since: 0.3
Parameters
variable
-
Type:
const char*
The variable to prepend to.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. value
-
Type:
const char*
The value to prepend.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. separator
-
Type:
const char*
The separator to use.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.