📅  最后修改于: 2022-03-11 14:44:45.939000             🧑  作者: Mango
#include
#include
int main ()
{
char str[] ="test string.";
char * test;
test = strtok (str," ");
while (test != NULL)
{
printf ("%s\n",test);
test= strtok (NULL, " ");
}
return 0;
}