title: split words by comma while reading line by line. c
body: <p>I have text with lines like that: (first word): word2,word3,...</p>
  <blockquote>
  <p>ab: 1a,2b,3c,4d</p>
  <p>c: 5e,6f,7g</p>
  </blockquote>
  <p>I want to assign the right side into arrays like that:</p>
  <pre><code>arr1[4] = {1a,2b,3c,4d}
  arr2[3] = {5e,6f,7g}
  </code></pre>
  <p>Now I iterate line by line like this</p>
  <pre><code> while ( fgets ( line, sizeof line, file ) != NULL ){...}
  </code></pre>
  <p>Can you suggest a way to split the lines such that I can take each word separately without the first word and the commas?</p>