string-util: add str_common_prefix() helper that determines length of common prefix of two strings

This commit is contained in:
Lennart Poettering
2025-02-17 14:57:03 +01:00
parent 42839efb10
commit f77f363c95
3 changed files with 37 additions and 0 deletions
+2
View File
@@ -308,3 +308,5 @@ bool version_is_valid_versionspec(const char *s);
ssize_t strlevenshtein(const char *x, const char *y);
char* strrstr(const char *haystack, const char *needle);
size_t str_common_prefix(const char *a, const char *b);