title: Get int from char[] of bytes
body: <p>I have a file that I read into a char array.</p>
  
  <p>The char array now holds a certain number of bytes, now if I know the file stored a 32bit integer in little endian at position say 0x8, how do I retrieve it from the char array?</p>
  
  <pre><code>FILE * file = fopen("file");
  char buffer[size];
  fread(buffer,1,size,file);
  int = buffer[0x8]; // What should I do here?
  // I imagine it involves some strange pointer
  // arithmetic but I can't see what I should do,
  // casting to int just takes the first byte,
  // casting to (int *) doesn't compile
  </code></pre>