i am using c++ win32 Api.
i want to split the character using delimiter.
that character like "CN=USERS,OU=Marketing,DC=RAM,DC=COM".
i want to split the charcter into after the first comma(,).that means i need only
OU=Marketing,DC=RAM,DC=COM.
i already tried strtok function,but it split CN=USERS only.
How can i achieve this?
Try below code, you should be able to get each item(separated by ‘,’) easily:
strtok version:
std::stringstream version:
Have a look at std::getline()
http://en.cppreference.com/w/cpp/string/basic_string/getline