Showing posts with label executable. Show all posts
Showing posts with label executable. Show all posts

Friday, June 1, 2012

Finding current executable"s path without /proc/self/exe


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 cross-platform interfaces. I've seen some projects mucking around with argv[0], but it doesn't seem entirely reliable.