title: How to check if (Sub)Array exists in Array
body: <p>I need something between <code>strstr</code> and <code>memcmp</code> for checking if an array exists in a range of memory.</p>
  
  <p>Example what I want to achieve:</p>
  
  <pre><code>BYTE a[] = { 0x01, 0x02, 0x03, 0x04 };
  BYTE b[] = { 0x02, 0x03 };
  if (mem_in_mem(a, b, 4 * sizeof(BYTE)) == 0) {
      printf("b is in memory range of a\n");
  }
  </code></pre>
  
  <p>Any ideas how I can something like that?
  (Should work with windows)</p>