title: strcat in C error segmentation
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main() {
    char tab[2]={"12"};
    FILE *outfile;
    char *outname = "/home/dir/";
    printf("%s", strcat(outname,tab));
    outfile = fopen(strcat(outname,btab), "w");
    if (!outfile) {
      printf("There was a problem opening %s for writing\n", outname);
    }
  }
  </code></pre>
  
  <p>I have this error: Segmentation Fault.</p>
  
  <p>How can I fix it?</p>