X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fstrv.h;h=46436a52d9a2da8f1eedc21db127ac7c9b7cfa54;hb=d5762cf5404cbbf557df014b04ee1e29ce852823;hp=0d50b02f012063059c742dbb219f92df5ff84adf;hpb=ddb26e1818f67c2b97313d2ccf7468b2240ec086;p=elogind.git diff --git a/src/strv.h b/src/strv.h index 0d50b02f0..46436a52d 100644 --- a/src/strv.h +++ b/src/strv.h @@ -1,4 +1,4 @@ -/*-*- Mode: C; c-basic-offset: 8 -*-*/ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ #ifndef foostrvhfoo #define foostrvhfoo @@ -59,6 +59,14 @@ 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_unset(char **l, 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); + +char **strv_env_clean(char **l); + +char **strv_parse_nulstr(const char *s, size_t l); #define STRV_FOREACH(s, l) \ for ((s) = (l); (s) && *(s); (s)++)