i have a string
"some string : something,something,something"
is there another way to use strtok to get it to print
something
something
something
i tried using
and doesnt give the correct result.Code:strtok(string_buffer, ":"); while (temp = strtok(NULL, ",")) { printf("%s\n", temp); }
Thanks