Package: glib

Function g-listenv

Lambda List

g-listenv ()

Return Value

A list of strings.

Details

Gets the names of all variables set in the environment.

Programs that want to be portable to Windows should typically use this function and the function g-getenv instead of using the environ array from the C library directly. On Windows, the strings in the environ array are in system codepage encoding, while in most of the typical use cases for environment variables in GLib-using programs you want the UTF-8 encoding that this function and the function g-getenv provide.
 

See also

2020-10-24