Blame src/mxcat.h

Packit e8bc57
#ifndef MXCAT_H
Packit e8bc57
#define MXCAT_H
Packit e8bc57
Packit e8bc57
/** mxcat allocates a new buffer and concatenates all strings in the
Packit e8bc57
  * argument list into the new buffer, starting with \a first.
Packit e8bc57
  * The variable argument list MUST be terminated by a NULL pointer.
Packit e8bc57
  * \return the address of the first byte of the allocated string, the
Packit e8bc57
  * caller must call free() on the result after use.
Packit e8bc57
  *
Packit e8bc57
  * \b Example: <tt>char *x = mxcat("this ", "is ", "nice!", NULL);</tt>\n
Packit e8bc57
  * will point x to the first character of "this is nice!".
Packit e8bc57
  */
Packit e8bc57
char *mxcat(const char *first, ...);
Packit e8bc57
Packit e8bc57
#endif