here is a program to make tokens whenever there is a comma , fullstop space . i want to include tab also in the list . That is , when there is a tab also ,it should make token . How can i make it ?
int main ()
char str ="- This, a sample string.";
char * pch;
printf ("Splitting string \"%s\" into tokens:\n",str);
pch = strtok (str," ,.-");
while (pch != NULL)
pch = strtok (NULL, " ,.-");