title: Rewriting strlen() in C
body: <p>if anyone has ever wanted to try and rewrite a string function in <code>C</code>, would this code work to replace the standard <code>strlen()</code> function?
  I have not been able to run this code because I am sitting in my car typing it on my iPhone. </p>
  
  <pre><code>int strlen(char * s) {
        int i = 0, sum = 0;
        char c = s[0];
  
        while(c != '\0') {
              sum++;
              c = s[++i];
        }
        return sum;
  }
  </code></pre>
  
  <p>You feedback is so much appreciated!</p>