title: Using memcpy to read two integers from a memory block
body: <p>I am trying to read two integers, stored consecutively, from a memory block (i have a pointer <code>void *block</code> pointing to the contents of the block) using <code>memcpy</code>. The first one is read just fine using:</p>
  
  <p><code>memcpy(&amp;test, block, sizeof(int));</code></p>
  
  <p>I try to read the second using:</p>
  
  <p><code>memcpy(&amp;test, block + sizeof(int), sizeof(int));</code></p>
  
  <p>(Of course i am having those stataments in different execution instances of the program, so the problem is not that test is being overriden)</p>
  
  <p>but i fail to get the correct result! What am i doing wrong here?</p>