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 = "Commands";
commands_separated = "System";
commands_separated = "Windows";
commands_separated = "Accessibility";