basic/env-util: add little helper to call setenv or unsetenv

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-11-10 15:48:14 +01:00
parent 55c540d39f
commit 063f9f0da9
5 changed files with 21 additions and 14 deletions
+3
View File
@@ -52,3 +52,6 @@ char *strv_env_get(char **x, const char *n) _pure_;
int getenv_bool(const char *p);
int getenv_bool_secure(const char *p);
/* Like setenv, but calls unsetenv if value == NULL. */
int set_unset_env(const char *name, const char *value, bool overwrite);