title: fscanf and newline character
body: <p>I have fscanf to read lines of setting from a configuration file. Those settings have strictly predefined format which looks like</p>
  
  <pre><code>name1=option1;
  name2=option2;
  ...
  </code></pre>
  
  <p>so basically I do</p>
  
  <pre><code>fscanf(configuration,"%[^=]=%[^;];",name,option);
  </code></pre>
  
  <p>where configuration is the file stream and name and option are programming buffers.</p>
  
  <p>The problem is that the name buffer contains a newline character I don't want. Is there format specifier I've missed in the "[^...]" set to skip newline character? Anyway, can it be solved through format specifier ever?</p>
  
  <p>BTW: Swallowing the newline character by writting this </p>
  
  <pre><code>"%[^=]=%[^;];\n"
  </code></pre>
  
  <p>is not elegent I think for that the newline character could repeat more than once anywhere.</p>