Ok I hope some one can help!
This is so frustrating because it should be real simple but it's not!
I'm programming in C on a Unix server. And what I'm trying to do is open a file for reading. I know the name of the file but it's directory is a Unix environment variable.
For example: file abc.txt is in HOME
so I need a way to ifp = fopen(???????, "r");
Does anyone know of a way to use the getenv function to get the value of HOME and then somehow append abc.txt onto it so that I can get a nice directory/filename all in one?