|
From: Jeremy F. <je...@go...> - 2004-01-08 21:04:40
|
On Thu, 2004-01-08 at 10:44, Nicholas Nethercote wrote:
> How can I find the home directory -- is getenv("HOME") the right way?
> (Is $HOME always defined?)
No, but if it isn't, then just don't look for the file. There's no
point in getting too heroic over it.
It might also be useful to look in "." as well, since you might want a
program-specific config file. Or perhaps have an env var for looking
for multiple config files? Is this getting all too complex?
J
|