title: How does this basic reimplementation of strlen() find the length?
body: <p>My professor showed us this sample implementation of a function to find the length of a string, saying that this is how you would do it without actually using the <code>strlen()</code> function:</p>
  
  <pre><code>int length(char word)
  {
      int i;
      for (i = 0; word[i]!='\0'; i++)
      {
          {
  
          }
      }
      return i;
   }
  </code></pre>
  
  <p>She said it would be in our best interest for us to do similarly for <code>strcat()</code> , <code>strcmp()</code>, and <code>strcpy()</code>, to understand how the functions actually work. </p>
  
  <p>What is going on in this function? Is there anything I can learn from this example to help me reimplement the other three?</p>