array...for loop
<p>I have two integer a, b and a loop like this:</p>

<pre><code>for(int i=0 ;i&lt;8 ;++i)
{
    if((b &amp; (0x01 &lt;&lt; i)) != 0x00)  
    {
        // 
        c ^= (a &lt;&lt; i);
    }
}
</code></pre>

<p>how can i do this when a and b are stored in char arrays?</p>

<pre><code>unsigned char test (unsigned char* a[], unsigned char* b[])
{

    for(int i=0 ;i&lt;8 ;++i)
    {
        if((b[i] &amp; (0x01 &lt;&lt; i)) != 0x00)  
        {
            shiftleft(a);
            c[i] ^= a;
        }
    }
}
</code></pre>
