title: fread into multiple variables
body: <p>I have the following code:</p>
  
  <pre><code>// fp is a FILE opened in binary mode
  unsigned char bit_depth;
  unsigned char color_type;
  unsigned char compression_method;
  unsigned char filter_method;
  unsigned char interlace_method;
  
  fread(&amp;bit_depth, 1, 1, fp);
  fread(&amp;color_type, 1, 1, fp);
  fread(&amp;compression_method, 1, 1, fp);
  fread(&amp;filter_method, 1, 1, fp);
  fread(&amp;interlace_method, 1, 1, fp);
  </code></pre>
  
  <p>I'd like to to all <code>freads</code> in one go, perhaps using something akin to a format string (but <code>fscanf</code> is only for text files, right?).</p>
  
  <p>Any help is much appreciated, thanks!</p>