haven't used C/C++ in a while....so this might be really simple for most of you....
can someone please tell me how to concatenate two char * strings?
(one of them is const char* and the other one isn't)
char * c1 = "SYSTEM PATH = ";
char *c2 = getenv("PATH");
how do I concatenate c1 + c2 and put the result into a third char * variable?
I've tried strcat() but since c2 points to a string without the explicit '\0' character, the program crashes.
thanks very much.