chiark / gitweb /
journal: log user units for coredumps and show them in systemctl status
[elogind.git] / src / shared / strv.h
index 44ba3d1530e4514b53a23af5f1718f0cf5ffde18..33c752a313c0b36990c5e4da7825c49ec74aedff 100644 (file)
@@ -82,4 +82,9 @@ bool strv_overlap(char **a, char **b);
 #define STRV_FOREACH_BACKWARDS(s, l)            \
         for (; (l) && ((s) >= (l)); (s)--)
 
+#define STRV_FOREACH_PAIR(x, y, l)               \
+        for ((x) = (l), (y) = (x+1); (x) && *(x) && *(y); (x) += 2)
+
+
 char **strv_sort(char **l);
+void strv_print(char **l);