#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { const char *what = "Malloc Capital"; const char *who = "Matt Hackett"; char *its = NULL; if ((its = malloc(strlen(what) + strlen(who) + 5)) == NULL) { fprintf(stderr, "err: out of memory!\n"); return EXIT_FAILURE; } strcpy(its, what); strcat(its, " == "); strcat(its, who); puts(its); free(its); return EXIT_SUCCESS; }