[#BloombergLP-bdls-ProcessUtil-getPathToExecutable] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/ProcessUtil.adoc[ProcessUtil]::getPathToExecutable :relfileprefix: ../../../ :mrdocs: Set `*result` to a path with which the executable can be accessed (which may bear no relation to the command line used to begin this process). Return 0 on success, and a non‐zero value otherwise. On failure, `*result` will not be modified. Note that the returned value of `*result` may not correspond to the value of `argv[0]` passed to `main`. Some systems provide more reliable alternatives, such as through the "/proc" file system. == Synopsis Declared in `<bdls_processutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int getPathToExecutable(xref:bsl/string.adoc[bsl::string]* result); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#