Raffaele <nos### [at] nospamit> wrote:
> i was sure argv[0] contained the path to the
> current executable.
Actually it's very rare for it to contain it.
> What does you suggest to get the path to the current
> executable? is there a c standard function to do so?
There's no standard C or C++ function to do that. I'm not even sure
there's a POSIX function to do that (although there might be, as POSIX
as tons of things). I'm not even sure the OS is in any way required to
keep/provide this information to the application.
--
- Warp
Post a reply to this message
|