Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting path to executing application



I'm needing to find a way to get the path to where the actual executable file resides using POSIX apis. For example:

foo is located at /usr/bin/foo

when I execute foo, I want it to print /usr/bin/foo no matter what directory I'm in.

I don't want to have to construct it from argv[0] with the cwd.

after looking around, I'm beginning to think that this isn't possible. Any suggestions? please cc me directly.

thanks

-------------------
Tobias Ford...
email@hidden email@hidden
-------------------
Senior Software Engineer @ WolfPack Studios
www.wolfpackstudios.com www.shadowbane.com
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.