I\'m working in C, and I have to concatenate a few things.
Right now I have this:
message = strcat(\"TEXT \", var); message2 = strcat(strcat(\"TEXT
Best way to do it without having a limited buffer size is by using asprintf()
char* concat(const char* str1, const char* str2) { char* result; asprintf(&result, "%s%s", str1, str2); return result; }