Skip to content
GetCurrentExecutablePath

GetCurrentExecutablePath

Description

Resolve the path of the currently running executable. Appends into exe_path (caller initialises the Str).

Success

Returns exe_path with the resolved path appended.

Failure

Returns NULL. exe_path may have been partially written; the cause is logged.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    Str *GetCurrentExecutablePath(Str *exe_path) {
        ValidateStr(exe_path);
        Allocator *alloc = StrAllocator(exe_path);
Last updated on