How to align pointer
<p>How do I align a pointer to a 16 byte boundary?</p>

<p>I found this code, not sure if its correct</p>

<pre><code>char* p= malloc(1024);

if ((((unsigned long) p) % 16) != 0) 
{
     unsigned char *chpoint = (unsigned char *)p;        
     chpoint += 16 - (((unsigned long) p) % 16);
     p = (char *)chpoint;
}
</code></pre>

<p>Would this work?</p>

<p>thanks</p>
