title: Parsing with multiple delimiters, in C
body: <p>In C, what is the best way to parse a string with multiple delimiters? Say I have a string <code>A,B,C*D</code> and want to store these values of A B C D. I'm not sure how to deal with the <code>*</code> elegantly, other than to store the last string <code>C*D</code> and then parse that separately with a <code>*</code> delimiter.</p>
  
  <p>If it was just <code>A,B,C,*D</code> I'd use strtok() and ignore the first index of the <code>*D</code> to get just D, but there is no comma before the <code>*</code> so I don't know that <code>*</code> is coming.</p>