Well, basically allocate data to store the user input and allocate data to store the result of the string concatenation.

Read in user input to allocated blocks, then using something strncat to concatenate.