Back to index

tetex-bin  3.0
concat.c File Reference
#include <kpathsea/config.h>

Go to the source code of this file.


string concat P2C (const_string, s1, const_string, s2)

Function Documentation

string concat P2C ( const_string  ,
s1  ,
const_string  ,

Definition at line 26 of file concat.c.

  unsigned s1len = strlen(s1);
  unsigned s2len = strlen(s2);
  string answer = (string) xmalloc (s1len + s2len + 1);
  strcpy (answer, s1);
  strcat (answer + s1len, s2);

  return answer;

Here is the call graph for this function: