String tokenizer in C++

if we want to split the string about $ and , then do we need to write it as strtok(str,",$") ?
will there be some space between the comma and the $ symbol when we pass it as an argument ?

@Tiwary725 No space is not required. If you include a space then it would also split the string about space.