diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-15 14:52:39 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-16 16:10:14 +0100 |
commit | f08231fe07fe15933c3a2de399ac5deb22cf7901 (patch) | |
tree | f48ffe849579a95df26f4b4c5af02504cf89f25e /src/basic/env-util.h | |
parent | shared/user-record: inline iterator variable declarations (diff) | |
download | systemd-f08231fe07fe15933c3a2de399ac5deb22cf7901.tar.xz systemd-f08231fe07fe15933c3a2de399ac5deb22cf7901.zip |
basic/env-util: add strv_env_assign() helper
Diffstat (limited to 'src/basic/env-util.h')
-rw-r--r-- | src/basic/env-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
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_; |