]>
Commit | Line | Data |
---|---|---|
60918275 LP |
1 | /*-*- Mode: C; c-basic-offset: 8 -*-*/ |
2 | ||
3 | #ifndef foostrvhfoo | |
4 | #define foostrvhfoo | |
5 | ||
6 | #include "macro.h" | |
7 | ||
8 | char *strv_find(char **l, const char *name); | |
9 | void strv_free(char **l); | |
10 | char **strv_copy(char **l); | |
11 | unsigned strv_length(char **l); | |
12 | ||
034c6ed7 LP |
13 | char **strv_merge(char **a, char **b); |
14 | ||
60918275 LP |
15 | char **strv_new(const char *x, ...) __sentinel; |
16 | ||
17 | #define STRV_FOREACH(s, l) \ | |
18 | for ((s) = (l); (l) && *(s); (s)++) | |
19 | ||
20 | #define STRV_FOREACH_BACKWARDS(s, l) \ | |
21 | for (; (l) && ((s) >= (l)); (s)--) | |
22 | ||
23 | #endif |