title: What is the C Equivalent of Python's pack("<I", 0)
body: <p>I don't know much python but from what I can tell from the documentation the code:</p>
  
  <pre><code>   str = "AAAA"
     str += pack("&lt;I", 0)
  </code></pre>
  
  <p>would append the result of the pack function to str, which would be the integer value of 0 in little-endian style. My question is what the C equivalent of this would be. Would it just be:</p>
  
  <pre><code>   char str[20] = "AAAA";
     strcat(str, "\x00");
  </code></pre>
  
  <p>?...</p>