string-util: introduce string_replace_char()

This commit is contained in:
Yu Watanabe
2022-04-20 02:14:35 +09:00
parent e4e1353c25
commit 072f5f9b18
3 changed files with 22 additions and 0 deletions
+2
View File
@@ -233,3 +233,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);