ΒΆstd::string getMainExecutable(const char* argv0,
                              void* MainExecAddr)

Description

Return the path to the main executable, given the value of argv[0] from program startup and the address of main itself. In extremis, this function may fail and return an empty path.

Declared at: llvm/include/llvm/Support/FileSystem.h:1204

Parameters

const char* argv0
void* MainExecAddr