I need my program to join two strings together. I want it to add the characters in source to the end of the string destination. The function assumes that there is enough room inside destination to store the additional characters. Can someone help me with this?
Here is what i have so far, i just need to finish the function join:
#include <stdio.h>
void join (char* destination, char* source) {
/* Need code here */
}
int main () {
char quick_fox [100] = "The quick brown fox";
char jumps_over [100] = " jumps over the lazy dog.";
printf("Joining \"%s\" to \"%s\"\n", quick_fox, jumps_over);
join(quick_fox, jumps_over);
printf("gives \"%s\"\n", quick_fox);
}