Function

GLib-2.0GLibenviron_unsetenvSince 2.32

  • Removes the environment variable variable from the provided environment envp.

    Parameters

    • envp: string[]

      an environment list that can be freed using g_strfreev() (e.g., as returned from g_get_environ()), or null for an empty environment list

    • variable: string

      the environment variable to remove, must not contain '='

    Returns string[]

    the updated environment list. Free it using g_strfreev().

    2.32