In C there are some usefull functions ready to use for strings. If you want to use them you have to include <string.h>. Implement a function that concatenates all words beginning with "pre".

Try using the functions strncmp and strcat.