]>
diplodocus.org Git - nmh/blob - sbr/concat.c
3 * concat.c -- concatenate a variable number (minimum of 1)
4 * of strings in managed memory
13 concat (char *s1
, ...)
19 len
= strlen (s1
) + 1;
21 while ((cp
= va_arg(list
, char *)))
25 if (!(dp
= sp
= malloc(len
)))
26 adios (NULL
, "unable to allocate string storage");
31 while ((cp
= va_arg (list
, char *)))