how to add 0x00 at the end of a buffer
<p>i have a a piece of code as :</p>

<pre><code>char* buffer = new char[12];
memcpy(newbuffer, bytes, 10); //bytes is const void *
</code></pre>

<p>now i want the last 2 bytes which i have not used should be appended with 0000.</p>

<p>How can i achieve that?</p>
