I have a a char array:
char* name = \"hello\";
I want to add an extension to that name to make it
hello.txt
You can concatenate strings by using the sprintf() function. In your case, for example:
char file[80]; sprintf(file,"%s%s",name,extension);
And you'll end having the concatenated string in "file".