X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fstrv.h;h=8cb35ef395952c60d385d54f365864bf308bb826;hp=af13983993565c5eb1b100d542578c968556a425;hb=fab56fc541cebdbbc4cc273c3f0807eb7807b9fd;hpb=5b6319dceedd81f3f1ce7eb70ea5defaef43bcec diff --git a/src/strv.h b/src/strv.h index af1398399..8cb35ef39 100644 --- a/src/strv.h +++ b/src/strv.h @@ -58,6 +58,11 @@ char *strv_join(char **l, const char *separator) _malloc_; char **strv_env_merge(unsigned n_lists, ...); char **strv_env_delete(char **x, unsigned n_lists, ...); +char **strv_env_set(char **x, const char *p); + +char *strv_env_get_with_length(char **l, const char *name, size_t k); +char *strv_env_get(char **x, const char *n); + #define STRV_FOREACH(s, l) \ for ((s) = (l); (s) && *(s); (s)++)