Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-09-2006, 07:09 PM   #1
Registered: Oct 2004
Posts: 38

Rep: Reputation: 15
Exclamation Getting the home directory of current user in c++

original post removed

Last edited by jimsproch; 08-09-2010 at 06:21 PM.
Old 04-09-2006, 07:13 PM   #2
Registered: Oct 2004
Posts: 38

Original Poster
Rep: Reputation: 15
original post removed

Last edited by jimsproch; 08-09-2010 at 06:20 PM.
Old 04-10-2006, 01:15 AM   #3
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
I'm not sure, but eventually HOME might be redefined by the current user. I don't know if this could be a problem, maybe it's even desirable.

Anyway, another solution is getpwent(3)


c++, directory, home, linux, rocks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit a user to their home directory redgore Linux - General 2 08-04-2009 10:45 AM
jail user to /home/user directory confused_user Linux - Security 12 03-15-2006 09:56 AM
How to get home directory of a login user lucky6969b Programming 5 02-20-2006 01:46 AM
Restricting user home directory ? chuck77 Linux - General 3 11-27-2001 06:44 AM

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration