diff options
author | Clint Adams <clint@users.sourceforge.net> | 2000-09-18 03:31:31 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2000-09-18 03:31:31 +0000 |
commit | 04bf2c822fd3ba20438ec2c51186b0cd438a50f0 (patch) | |
tree | a96c80be72e54be1c5c09b049307be0fe9db0519 /Src/utils.c | |
parent | 2abf9db38184b94f45a07211014f08fe75ed8ee0 (diff) | |
download | zsh-04bf2c822fd3ba20438ec2c51186b0cd438a50f0.tar.gz zsh-04bf2c822fd3ba20438ec2c51186b0cd438a50f0.tar.xz zsh-04bf2c822fd3ba20438ec2c51186b0cd438a50f0.zip |
12823: use zsh heap in lieu of perm. heap in bin_dot
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c index ab5fbbeb4..e503b6844 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3473,6 +3473,20 @@ appstr(char *base, char const *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) { |