From f08231fe07fe15933c3a2de399ac5deb22cf7901 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Mon, 15 Feb 2021 14:52:39 +0100 Subject: basic/env-util: add strv_env_assign() helper --- src/basic/env-util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/basic/env-util.h') diff --git a/src/basic/env-util.h b/src/basic/env-util.h index 922cfe1c44..3f8995bf3d 100644 --- a/src/basic/env-util.h +++ b/src/basic/env-util.h @@ -47,6 +47,7 @@ char **strv_env_unset(char **l, const char *p); /* In place ... */ char **strv_env_unset_many(char **l, ...) _sentinel_; int strv_env_replace(char ***l, char *p); /* In place ... */ int strv_env_replace_strdup(char ***l, const char *assignment); +int strv_env_assign(char ***l, const char *key, const char *value); char *strv_env_get_n(char **l, const char *name, size_t k, unsigned flags) _pure_; char *strv_env_get(char **x, const char *n) _pure_; -- cgit v1.2.3