Here is a C function which implements the strcat() function...
/* Function to concatenate string t to end of s; return s */
char *myStrcat(char *s, const char *t)
char *p = s;
if (s == NULL || t == NULL)
return s; /* we need not have to do anything */
while (*s++ = *t++)