]> git.ipfire.org Git - thirdparty/util-linux.git/commit
env: add env_list_add_getenv() and env_list_add_getenvs()
authorKarel Zak <kzak@redhat.com>
Wed, 28 Aug 2024 09:23:31 +0000 (11:23 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Sep 2024 11:39:03 +0000 (13:39 +0200)
commitf52cce59febb9c4f5f6a7f3f6f645801ca5abf15
treec3ca8e6f8ad8f073db6b5c9e8b6e8af1c0d47506
parent6588c4cd4c144561891742ce65e97f7292beb077
env: add env_list_add_getenv() and env_list_add_getenvs()

* Add env_list_add_getenv() to import a single variable from the
  environ[] array. The function may accept a default value if getenv()
  does not return anything.

* Add env_list_add_getenvs() to import multiple variables from the
  environ[] array.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/env.h
lib/Makemodule.am
lib/env.c