nstd_env_set_current_dir

Function nstd_env_set_current_dir 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nstd_env_set_current_dir( path: &NSTDStr, ) -> NSTDIOError
Available on crate feature env only.
Expand description

Sets the current working directory for the process.

§Parameters:

  • const NSTDStr *path - The directory to set as the process working directory.

§Returns

NSTDIOError errc - The I/O operation error code.

§Safety

The user of this function must ensure that path is valid for reads.