Finding out executable location from a c program

I. Savant idiotsavant2005 at gmail.com
Mon Nov 19 08:12:23 PST 2007


>    I would need to find out the directory where the current executable
> resides to find some stuff whose location I know relative to the
> executable location.

 The first argument ( argv[0] ) is the path to your executable.

--
I.S.


More information about the MacOSX-dev mailing list