OK, this time I think I've got it.
Seems to work good. Tried it with multiple input, varying punctuation.Code:void ParseSentence(char *ptrA)
{
char temp[80];
int i;
strcpy(temp, ptrA);
int size = strlen(temp);
char *words[80];
words[0] = strtok(temp, " .,;");
printf("%s\n", words[0]);
for(i = 1; i < size - 1; i++)
{
while(words[i] != NULL)
{
words[i] = strtok(NULL, " .,;");
if(words[i] == NULL)
{
break;
}
printf("%s\n", words[i]);
}
}
}
Thanks again tabstop.

