Filenames with tilde
I want to open a file with a filename that starts with ~ so that it is created/opened in the users home directory.
But when I try to do that it fails with "No such directory".
I would have thought that this was a common requirement. So is there a handy library function that exists to convert the tilde into the users home directory path.
If not, and I have to do the conversion myself, what routines exist to get hold of the HOMEDIR variable.
All in "C" by the way.