OK so how can i have sscanf scan a string with an undetermined number of separators in it, then separate it out into separate strings inside a array of strings.
So essentially, how can I modify this code to make it work?
char * commands; //simple string as pointer
commands = "Commands::System::Windows::Accessibility::";
char ** commands_separated; //array of strings
sscanf(commands,"%s::",commands_separated);
and having the final value of commands_separated being:
commands_separated[0] = "Commands";
commands_separated[1] = "System";
commands_separated[2] = "Windows";
commands_separated[3] = "Accessibility";