I have a a char array:
char* name = \"hello\";
I want to add an extension to that name to make it
hello.txt
You could copy and paste an answer here, or you could go read what our host Joel has to say about strcat.