title: read comma-separated input with `scanf()`
body: <p>I have the following input:</p>
  
  <pre><code>AG23,VU,Blablublablu,8
  IE22,VU,FooBlaFooBlaFoo,3
  and so on...
  </code></pre>
  
  <p>I want it to "parse" with <code>scanf()</code> using some code like this:</p>
  
  <pre><code>char sem[5];
  char type[5];
  char title[80];
  int value;
  
  while(scanf("%s,%s,%s,%d", sem, type, title, &amp;value) == 4) {
   //do something with the read line values
  }
  </code></pre>
  
  <p>But the execution of the code gives me: <code>illegal instruction</code></p>
  
  <p>How would you read a comma-separated file like this?</p>