How to manage passing a pointer to an array to a function
<p>I have a buffer of points that I want to send off to be processed by a function.  It is an array of unsigned shorts.  Currently I'm trying the following:</p>

<pre><code>void ftn(unsigned short **buffer, int size)
{
    for (int i = 0; i &lt; size; i++)
    {
        *(buffer[i]) = 0; //test
    }
}
</code></pre>

<p>Outside of the function, it's defined as <code>unsigned short buffer[size];</code> Does this not make sense?  Where am I going wrong?  Thanks</p>
