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.