I have been trying to figure out how to (in C) put "getenv()" and "/filetest" into one char.
I've thought that you could do it by putting:
char *file = getenv("HOME") + "/filetest";
But, I can't seem to figure it out.
I tried after that to do:
char *file = getenv("HOME") && "/filetest";
But that didn't work either..
Then, I tried:
char *file1 = getenv("HOME");
char *file = file1 + "/filetest";
Could someone please tell me what I am doing wrong?