Strtok() function syntax

what whould be the syntax if i want more than 1 delimiter
string s=“Coding Blocks,codingstar”
i want Coding
Blocks
codingstar
as output
is it possible by strtok

@dakshi yes it is possible using the inbuilt strtok() function, the second argument has to be a string of delimiters so you can give it as ", "

my question can we use this for tokens at the same time for both space ans comma what will syntax then?

@dakshi i have told for that syntax only.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.