Retrieves the current working directory.
fn getcwd(buf: &mut [u8]) -> i32
The buffer into which the directory will be placed.
Returns the length of the current working directory or an error value.
getcwd(2)