diff options
author | Clint Adams <clint@users.sourceforge.net> | 2000-09-27 19:31:44 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2000-09-27 19:31:44 +0000 |
commit | f42bd3a3f9f018fc5a1a09c2a3175048660ba48f (patch) | |
tree | 19d890f77da73f52a6386d92c9f4e0de67cf2371 /Src/string.c | |
parent | 74ff6d6dbed67db63cd05fd6e96ee40dc4be6147 (diff) | |
download | zsh-f42bd3a3f9f018fc5a1a09c2a3175048660ba48f.tar.gz zsh-f42bd3a3f9f018fc5a1a09c2a3175048660ba48f.tar.xz zsh-f42bd3a3f9f018fc5a1a09c2a3175048660ba48f.zip |
12863: remove ztrdupstrip, use VARARR in ztat
Diffstat (limited to 'Src/string.c')
-rw-r--r-- | Src/string.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Src/string.c b/Src/string.c index 57775359e..3dad89911 100644 --- a/Src/string.c +++ b/Src/string.c @@ -133,23 +133,3 @@ appstr(char *base, char const *append) { return strcat(realloc(base, strlen(base) + strlen(append) + 1), append); } - -/* Duplicate a string, stripping delimiters. */ - -/**/ -mod_export char * -ztrdupstrip(const char *nam, char delim) -{ - char *p, *buf; - - buf = zalloc(strlen(nam)); - - for (p = buf; *nam; nam++) - if (*nam == delim && nam[1]) - *p++ = *++nam; - else - *p++ = *nam; - *p = '\0'; - - return buf; -} |