scanf()
truncates at the space. So, tokmain
will only have "word" when you enter "word word".
Try
scanf("%49[^\n]s",&tokmain); /*Notice the format string*/
for(i=0;i<50;i++) {
if (tokmain[i]=='\n') {
tokmain[i]='\0';
lettercount=i;
break;
}
}
pointok1=strtok(tokmain,delim);
pointok2=strtok(NULL,delim);
puts(pointok1);
puts(pointok2);`