string functions from programming pearls
<p>here is functions on strings  from programming pearls</p>

<pre><code>int wordncmp(char *p, char* q)
{   int n = k;
    for ( ; *p == *q; p++, q++)
        if (*p == 0 &amp;&amp; --n == 0)
            return 0;
    return *p - *q;
}

int sortcmp(char **p, char **q)
{   return wordncmp(*p, *q);
}

char *skip(char *p, int n)
{   for ( ; n &gt; 0; p++)
        if (*p == 0)
            n--;
    return p;
}
</code></pre>

<p>i dont understand wta does sortcmp()?  and  does skip function return non null terminated part from char *p or what?
please explain</p>
