|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 475 (0x1db) Types: TextFile Names: »add.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦3658e588a⟧ »EurOpenD3/mail/mh/mh-6.7.tar.Z« └─⟦c75e36ecb⟧ └─⟦this⟧ »mh-6.7/sbr/add.c«
/* add.c - concatenate two strings in managed memory */ #include "../h/mh.h" #include <stdio.h> char *add (this, that) register char *this, *that; { register char *cp; if (!this) this = ""; if (!that) that = ""; if ((cp = malloc ((unsigned) (strlen (this) + strlen (that) + 1))) == NULL) adios (NULLCP, "unable to allocate string storage"); (void) sprintf (cp, "%s%s", that, this); if (*that) free (that); return cp; }