Hi I want to tokenize a string in C
Following is the string.
{Job Started}{Job Running}{Job Running}{Job Finished}
I want to tokenize on { and } , so that I get "Job Started", "Job Running" and "Job Finished"
I also want same delimiter to be used as escaped characters
{Job Started}{Job \{ID1\} Running}{Job \{ID2\} Running}{Job Finished}
Should return me following
Job Started, Job {ID1} Running, Job {ID2} Running, Job Finishied.
I have solution with pointer airthmatic, but want to avoid re-iterating on the input string more than once.
Any suggestion.