Function lrs::file::read_link_buf

Retrieves the target of a symbolic link.

Syntax

fn read_link_buf<P>(link: P, buf: &mut [u8]) -> Result<&mut NoNullStr, Errno>
    where P: ToCString,

Arguments

NameDescription
link

The link whose target is to be retrieved.

buf

The buffer where the target will be stored in.

Return value

Returns the target of the link.

Remarks

If the path is relative, it will be interpreted relative to the current working directory.

See also