Return path to current executable assuming it was invoked with argv0. If path could not be determined, returns an empty path.

Synopsis

Declared in <util/exec.h>

fs::path
GetExePath(std::string_view argv0);

Return Value

The path to the current executable, or an empty path if unknown.

Parameters

Name

Description

argv0

The argv[0]value the process was invoked with.

Created with MrDocs