i'm trying to get the last word of the sentence using strtok.. i tried this :
while (tok != NULL)
{
tok = strtok (NULL, " ");
if((tok != NULL) && (strtok(NULL, " ")==NULL))
printf("%s", tok);
}
kinda doesn't work... anyone knows why?
Yes, tok is a char * pointer..