diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-11-14 22:16:23 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-11-14 22:21:16 +0100 |
commit | 409bc9c33e99d5bb1e04d01bf3c75854d3a5dc7e (patch) | |
tree | b529387725c19f4e42888809a3206f2ff1f1b54b /src/shared/util.h | |
parent | 7ae03f3697762548e49abb6be5ae7151b1ab9365 (diff) |
util: add strreplace() to replace a substring by another string
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index c2bed2a848..a148ebbc58 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -611,3 +611,5 @@ typedef enum DrawSpecialChar { _DRAW_SPECIAL_CHAR_MAX } DrawSpecialChar; const char *draw_special_char(DrawSpecialChar ch); + +char *strreplace(const char *text, const char *old_string, const char *new_string); |