The second call to strcat here is generating a segmentation fault, why?
strcat
#include #include #include
whitespaceseparator isn't big enough to contain the concatenated string, so you're causing undefined behaviour.
whitespaceseparator
Using gets is normally frowned upon, too.
gets