string-util: readd string_erase()

This was dropped in 8e27167cc9, but is
actually useful for some usecases still.
This commit is contained in:
Lennart Poettering
2019-12-04 10:58:12 +01:00
parent 282bde1066
commit 53caaffdf4
3 changed files with 36 additions and 0 deletions
+2
View File
@@ -278,3 +278,5 @@ static inline char* str_realloc(char **p) {
return (*p = t);
}
char* string_erase(char *x);