title: fetch 32bit instruction from binary file in C
body: <p>I need to read 32bit instructions from a binary file.
  so what i have right now is:</p>
  
  <pre><code>unsigned char buffer[4];
  fread(buffer,sizeof(buffer),1,file);
  </code></pre>
  
  <p>which will put 4 bytes in an array</p>
  
  <p>how should I approach that to connect those 4 bytes together in order to process 32bit instruction later?
  Or should I even start in a different way and not use fread?</p>
  
  <p>my weird method right now is to create an array of ints of size 32 and the fill it with bits from buffer array</p>