summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 62dd79c..4db37f5 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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;