opensubscriber
   Find in this group all groups
 
Unknown more information…

o : objc-language@lists.apple.com 6 January 2006 • 8:14AM -0500

Re: Accessing the username from C++
by Shawn Erickson

REPLY TO AUTHOR
 
REPLY TO GROUP



On 1/5/06, Don Clark <don_clark@onse...> wrote:
> I need a way to get the login name from my C++ program, and getlogin()
> doesn't do it - I'm logged in and am an administrator, and getlogin()
> returns "root".  What I really want to do is call
> fopen("~/Library/Logs/ousb2log.txt", "a"); but this fails
> with error code 2, file does not exist.

Consider using FSFindFolder for this.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (Objc-language@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.