From 946085efa5b9b949664ab94fcda302914936a1c5 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 19 Sep 2000 15:54:30 +0000 Subject: 12846: moved simple string manipulation functions to string.c --- Src/mem.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'Src/mem.c') diff --git a/Src/mem.c b/Src/mem.c index d97fee592..b21ef210f 100644 --- a/Src/mem.c +++ b/Src/mem.c @@ -506,32 +506,6 @@ zrealloc(void *ptr, size_t size) return NULL; } -/**/ -mod_export char * -dupstring(const char *s) -{ - char *t; - - if (!s) - return NULL; - t = (char *) zhalloc(strlen((char *)s) + 1); - strcpy(t, s); - return t; -} - -/**/ -mod_export char * -ztrdup(const char *s) -{ - char *t; - - if (!s) - return NULL; - t = (char *)zalloc(strlen((char *)s) + 1); - strcpy(t, s); - return t; -} - /**/ #ifdef ZSH_MEM -- cgit v1.2.3