From f42bd3a3f9f018fc5a1a09c2a3175048660ba48f Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 27 Sep 2000 19:31:44 +0000 Subject: 12863: remove ztrdupstrip, use VARARR in ztat --- Src/string.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'Src/string.c') 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; -} -- cgit 1.4.1