SyntaxFix
Write A Post
Hire A Developer
Questions
Typecasting to (char*) got it working for me!
token = strtok((char *)str.c_str(), " ");