return l;
if (isempty(l[n-1])) {
- free(l[n-1]);
- l[n-1] = NULL;
+ l[n-1] = mfree(l[n-1]);
}
return l;
return r;
}
+/// UNNEEDED by elogind
+#if 0
bool strv_overlap(char **a, char **b) {
char **i;
return l;
}
-/// UNNEEDED by elogind
-#if 0
bool strv_equal(char **a, char **b) {
if (!a || !b)
return a == b;
return true;
}
-#endif // 0
void strv_print(char **l) {
char **s;
puts(*s);
}
-/// UNNEEDED by elogind
-#if 0
int strv_extendf(char ***l, const char *format, ...) {
va_list ap;
char *x;
return l;
}
-#endif // 0
char **strv_shell_escape(char **l, const char *bad) {
char **s;
return l;
}
+#endif // 0
bool strv_fnmatch(char* const* patterns, const char *s, int flags) {
char* const* p;