string-util: add strrstr() helper

This commit is contained in:
Lennart Poettering
2024-01-03 18:38:46 +01:00
parent cb599f881a
commit 63566c6b6f
3 changed files with 48 additions and 0 deletions
+2
View File
@@ -322,3 +322,5 @@ static inline int strdup_or_null(const char *s, char **ret) {
*ret = c;
return 1;
}
char *strrstr(const char *haystack, const char *needle);