title: Does memcmp only work with strings?
body: <p>If I send <code>memcmp</code> two pointers to integers, then it seems to interpret the integers as chars.</p>
  
  <p>For example:</p>
  
  <pre><code>int a = 5;
  int b = 256;
  int res = memcmp(&amp;a,&amp;b,sizeof(int));
  </code></pre>
  
  <p>In the code above, it returns 1.</p>
  
  <p>I'd like to get a better understanding of this function, and I am wondering if I'm either using it wrong or if there is a similar function for comparing blocks of memory holding <code>int</code> values.</p>