title: A custom "strcpy" function in c
body: <p>This method can copy contents from 1 string to another.
  My question is how does it stop when it reaches end of string? how does it know when to stop?</p>
  
  <pre><code>void strcpy2(char *s, char *t)
  {
    while (*s++ = *t++)
      ;
  }
  </code></pre>