I came across these two methods to concatenate strings:
Common part:
char* first= \"First\"; char* second = \"Second\"; char* both = malloc(strlen(fi
They should be pretty much the same. The difference isn't going to matter. I would go with sprintf since it requires less code.
sprintf