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