Back to index

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

Go to the source code of this file.

Functions

string concatn PVAR1C (const_string, str1, ap)

Function Documentation

string concatn PVAR1C ( const_string  ,
str1  ,
ap   
)

Definition at line 28 of file concatn.c.

{
  string arg;
  string ret;

  if (!str1)
    return NULL;
  
  ret = xstrdup (str1);
  
  while ((arg = va_arg (ap, string)) != NULL)
    {
      string temp = concat (ret, arg);
      free (ret);
      ret = temp;
    }
  va_end (ap);
  
  return ret;
}}

Here is the call graph for this function: