string-util: move startswith_strv to strv

This commit is contained in:
Mike Yuan
2024-01-04 16:44:15 +08:00
parent 53190aa693
commit eba8b54130
4 changed files with 15 additions and 17 deletions

View File

@@ -291,11 +291,6 @@ char *strdupcspn(const char *a, const char *reject);
char *find_line_startswith(const char *haystack, const char *needle);
char *startswith_strv(const char *string, char **strv);
#define STARTSWITH_SET(p, ...) \
startswith_strv(p, STRV_MAKE(__VA_ARGS__))
bool version_is_valid(const char *s);
bool version_is_valid_versionspec(const char *s);