title: How to put the characters of a 16 byte char array into a 16 byte u_int32_t array?
body: <p>Say I have a char pointer and I want to put it into a char array with 16 characters (even if the char pointer's strlen() is greater than that, then truncate), simple enough, I just do:</p>
  
  <pre><code>char* pointer = &lt;insert whatever here&gt;;
  unsigned char myArray[16];
  memcpy(myArray, pointer, 16);
  </code></pre>
  
  <p>Now, I want to put the char array into a 16 byte u_int32_t array.<br>
  Here is what I am trying:</p>
  
  <pre><code>u_int32_t newArray[4];
  memcpy(newArray, myArray, 16);
  </code></pre>
  
  <p>This doesn't seem to be copying over the bytes how I want it to. Am I missing some fundamental C step here?<br>
  Is there a different way I am supposed to put a char array into a u_int32_t array?</p>