#include #include #include int main() { char line1[] = "A simple line of text. "; char line2[] = "Flann O'Brien: At-Swim-Two-Birds. "; char line3[] = "Queens Park Rangers (QPR) FC."; char * total; char * tokens; int l1 , l2 , l3 , t; l1 = strlen(line1);l2 = strlen(line2); l3 = strlen(line3); t=l1+l2+l3; total = malloc( t * sizeof(char) ) ; strcpy(total,line1);strcat(total,line2); strcat(total,line3); tokens = strtok(total," .,-()"); while ( tokens !=NULL ) { printf("%s\n",tokens); tokens = strtok( NULL , " .,-()"); } return(0); }