Retrieves the target of a symbolic link.
fn read_link<P>(link: P) -> Result<NoNullString<Libc>, Errno>
where P: ToCString,| Name | Description |
|---|---|
| link | The link whose target is to be retrieved. |
Returns the target of the link.
The memory for the target will be allocated.
If the path is relative, it will be interpreted relative to the current working directory.