string-util: introduce strspn_from_end()

This commit is contained in:
Yu Watanabe
2022-04-20 02:15:01 +09:00
parent 072f5f9b18
commit 146f4482b2
3 changed files with 29 additions and 0 deletions

View File

@@ -235,3 +235,5 @@ static inline int string_contains_word(const char *string, const char *separator
bool streq_skip_trailing_chars(const char *s1, const char *s2, const char *ok);
char *string_replace_char(char *str, char old_char, char new_char);
size_t strspn_from_end(const char *str, const char *accept);