title: How do I concatenate const/literal strings in C?
body: <p>I'm working in C, and I have to concatenate a few things.</p>
  
  <p>Right now I have this:</p>
  
  <pre><code>message = strcat("TEXT ", var);
  
  message2 = strcat(strcat("TEXT ", foo), strcat(" TEXT ", bar));
  </code></pre>
  
  <p>Now if you have experience in C I'm sure you realize that this gives you a segmentation fault when you try to run it. So how do I work around that?</p>