Re: c question




Try getenv("HOME").  It returns a char* with the absolute path for their
home directory (assuming $HOME is set).

Later,

Jeremy Wise

+----------------------------------------------------------------+
| Jeremy Wise                       Make every effort to enter   |
| jwise@pathwaynet.com              through the narrow door,     |
| ICQ #4664755                      because many, I tell you,    |
| http://www.pathwaynet.com/~jwise  will try to enter and will   |
| http://gnomeicu.gdev.net/         not be able to. (Luke 13:24) |
+----------------------------------------------------------------+

On Fri, 4 Jun 1999, Fox, Kevin M wrote:

> Is there a function in c to return the path to the current users home
> directory?
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



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