ssize_t readlink(const char* path, char* buf, size_t size);
Reads the symbolic link at path and stores the target at buf, with maximum length size. Returns the size of the link in bytes on success, or the negation of the error code on error.
The result buffer is not null terminated. |