From 04bf2c822fd3ba20438ec2c51186b0cd438a50f0 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Mon, 18 Sep 2000 03:31:31 +0000 Subject: 12823: use zsh heap in lieu of perm. heap in bin_dot --- Src/utils.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index ab5fbbeb4..e503b6844 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3472,6 +3472,20 @@ appstr(char *base, char const *append) return strcat(realloc(base, strlen(base) + strlen(append) + 1), append); } +/**/ +mod_export char * +zhtricat(char const *s1, char const *s2, char const *s3) +{ + char *ptr; + + ptr = (char *)zhalloc(strlen(s1) + strlen(s2) + strlen(s3) + 1); + strcpy(ptr, s1); + strcat(ptr, s2); + strcat(ptr, s3); + return ptr; +} + + /**/ static int upchdir(int n) -- cgit v1.2.3