string-util: move startswith_strv to strv

This commit is contained in:
Mike Yuan
2024-01-04 16:49:05 +08:00
parent 53190aa693
commit eba8b54130
4 changed files with 15 additions and 17 deletions
+5
View File
@@ -159,6 +159,11 @@ static inline void strv_print(char * const *l) {
strv_print_full(l, NULL);
}
char* startswith_strv(const char *s, char * const *l);
#define STARTSWITH_SET(p, ...) \
startswith_strv(p, STRV_MAKE(__VA_ARGS__))
#define strv_from_stdarg_alloca(first) \
({ \
char **_l; \