]>
diplodocus.org Git - nmh/blob - sbr/concat.c
3 * concat.c -- concatenate a variable number (minimum of 1)
4 * of strings in managed memory
8 * This code is Copyright (c) 2002, by the authors of nmh. See the
9 * COPYRIGHT file in the root directory of the nmh distribution for
10 * complete copyright information.
18 concat (char *s1
, ...)
24 len
= strlen (s1
) + 1;
26 while ((cp
= va_arg(list
, char *)))
30 dp
= sp
= mh_xmalloc(len
);
35 while ((cp
= va_arg (list
, char *)))