title: error: invalid operands to binary + char *
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/308695/c-string-concatenation">C String Concatenation</a>  </p>
  </blockquote>
  
  
  
  <p>have the following code:</p>
  
  <pre><code>        char *doencode(const unsigned char *input, int length)
          {
          //irrelevant code
          }
  
          char *fname, *lname;
          char *encoded, *name;
  
          name = fname + "|" + lname;
          encoded = doencode(name, 30);
  </code></pre>
  
  <p>and I get this error: invalid operands to binary +</p>
  
  <p><strong><em>How can I combine fname &amp; | &amp; lname?</em></strong></p>