title: better way to concatenate multiple strings in c?
body: <p>Is there a better way to concatenate multiple strings together in c other than having multiple calls to strcat() all in a row, like below?</p>
  
  <pre><code>char prefix[100] = "";
  strcat(prefix, argv[0]);
  strcat(prefix, ": ");
  strcat(prefix, cmd_argv[0]);
  strcat(prefix, ": ");
  strcat(prefix, cmd_argv[1]);
  perror(prefix);
  </code></pre>