[utils] string_replace also creates a copy

This commit is contained in:
Al
2016-11-30 10:09:33 -08:00
parent 5a7e73e2a1
commit b639fa5127
3 changed files with 17 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ void string_lower(char *s);
bool string_is_upper(char *s);
void string_upper(char *s);
void string_replace(char *s, char c1, char c2);
char *string_replace(char *s, char c1, char c2);
bool string_starts_with(const char *str, const char *start);
bool string_ends_with(const char *str, const char *ending);