diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -48,6 +48,19 @@ char *CopyStr(const char *p) } +char *CatStr(char *orig, const char *p) +{ + char *new; + + new=Malloc(strlen(orig)+strlen(p)+1); + strcpy(new,orig); + strcat(new,p); + free(orig); + + return new; +} + + void *F_Malloc(const char *file, int line, size_t len) { void *new; |