title: Concatenate string with strcpy
body: <p>Here is my code </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;stdlib.h&gt;
  
  
  int main() {
  
   char f[] = "First";
   char s[] = "Second";
   char *tmp = malloc(strlen(f) + strlen(s) + 2);
   strcpy(tmp, f);
   strcpy(tmp, s);
   printf("%s", tmp);
   free(tmp);
   return 0;
  }
  </code></pre>
  
  <p>I'm trying to concatenate f and s. The problem is that tmp contains only "Second" as a array.
  What I miss here </p>