Skip to main content

executable_dir_from_argv0

Function executable_dir_from_argv0 

Source
pub fn executable_dir_from_argv0(argv0: Option<&Path>) -> Option<PathBuf>
Expand description

Returns the current executable directory for an argv0-style input.

§Parameters

§Returns

Returns Some when crate::binaries::executable_dir_from_argv0 can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::binaries::executable_dir_from_argv0(todo!());
  • crate::binaries for adjacent helpers that share the same runtime surface.