Function lrs::file::read_link

Retrieves the target of a symbolic link.

Syntax

fn read_link<P>(link: P) -> Result<NoNullString<Libc>, Errno>
    where P: ToCString,

Arguments

NameDescription
link

The link whose target is to be retrieved.

Return value

Returns the target of the link.

Remarks

The memory for the target will be allocated.

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

See also