char* strconcat(char * c, const char * d) { c = realloc(c, strlen(c) + strlen(d) + 1); strcat(c, d); return c; }