Function lrs::syscall::getcwd

Retrieves the current working directory.

Syntax

fn getcwd(buf: &mut [u8]) -> i32

Arguments

NameDescription
buf

The buffer into which the directory will be placed.

Return value

Returns the length of the current working directory or an error value.

See also