Exactly like How do I find the location of the executable in C? but for Mac OS X. I am aware that argv[0] probably works, but I want a way to programmatically access this information (i.e. a function call) as the code I am writing is part of a library which does not have access to argv[0].
Asked
Active
Viewed 1,511 times