]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/sbr/add.c
1 /* add.c - concatenate two strings in managed memory */
17 if ((cp
= malloc ((unsigned) (strlen (this) + strlen (that
) + 1))) == NULL
)
18 adios (NULLCP
, "unable to allocate string storage");
20 (void) sprintf (cp
, "%s%s", that
, this);