It seems to me that Linux has it easy with /proc/self/exe. But I\'d like to know if there is a convenient way to find the current application\'s directory in C/C++ with cros
In addition to mark4o's answer FreeBSD also has
const char* getprogname(void)
It should also be available in MacOS. It's available in GNU/Linux through libbsd.