MCPcopy Create free account
hub / github.com/avast/retdec / getThisBinaryPath

Function getThisBinaryPath

src/utils/binary_path.cpp:50–56  ·  view source on GitHub ↗

* Get absolute path of currently running binary. * * @return absolute path */

Source from the content-addressed store, hash-verified

48 * @return absolute path
49 */
50fs::path getThisBinaryPath()
51{
52 std::size_t dirPathSize = 0;
53 std::string path = getStringThisBinaryPath(dirPathSize);
54
55 return path;
56}
57
58/**
59 * Get absolute path to directory of currently running binary.

Callers 1

TEST_FFunction · 0.85

Calls 1

getStringThisBinaryPathFunction · 0.85

Tested by 1

TEST_FFunction · 0.68