Re: c question




: > From: "Fox, Kevin M" <KMFox@mail.bhi-erc.com>
: > 
: > Is there a function in c to return the path to the current users home
: > directory?
: 
: man getenv
: 
: the environment variable you want is HOME
: 
: Dave

Or use getpwnam/getpwuid, if it's something for which you can't or
won't trust the environment variables.

      - A



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]