X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=strv.h;h=cc21eb19303010cac2c79a9bafeef17cbece5928;hb=ab6e5f147eb9fa303653ef664f79048110d4a12b;hp=9504cccad4a330ecefd435f7234ebc9624f3ca09;hpb=034c6ed7da5e44bfdde5a5d0da75f7b7a59953b8;p=elogind.git diff --git a/strv.h b/strv.h index 9504cccad..cc21eb193 100644 --- a/strv.h +++ b/strv.h @@ -12,10 +12,12 @@ unsigned strv_length(char **l); char **strv_merge(char **a, char **b); +bool strv_contains(char **l, const char *s); + char **strv_new(const char *x, ...) __sentinel; #define STRV_FOREACH(s, l) \ - for ((s) = (l); (l) && *(s); (s)++) + for ((s) = (l); (s) && *(s); (s)++) #define STRV_FOREACH_BACKWARDS(s, l) \ for (; (l) && ((s) >= (l)); (s)--)