Simplify string iteration
<p>I'm at the very beginning of learning to code (specifically C).
While writing a function which is counting the chars of an array for studying purposes, I was questioning myself (and I'm pretty sure about it), if there is the possibility to simplify this iteration:</p>

<pre><code>int stringlength(char* s)
{
    int i = 0;

    while (s != NULL &amp;&amp; *(s + i) != '\0')
        i++;

    return i;
}
</code></pre>

<p>I would like to keep the <code>i++</code> within the iteration itself (for loop?).</p>

<p>I'm appreciating any hint you guys got for me. If you find something question unrelated which I'm doing wrong - please let me know.</p>