summaryrefslogtreecommitdiff
path: root/strv.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-27 22:38:21 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-27 22:38:21 +0100
commitcba8922fd40b9eca203bc1d63bef72dd1edf302c (patch)
tree4d2329ba3a84ef23f09cee28b694c9fa647ea02c /strv.h
parent4a72ff34c62f18559e96b35d69c665e07290f228 (diff)
downloadsystemd-cba8922fd40b9eca203bc1d63bef72dd1edf302c.tar.gz
introduce strv_contains()
Diffstat (limited to 'strv.h')
-rw-r--r--strv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/strv.h b/strv.h
index 9504cccad4..cc21eb1930 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)--)