Go to the previous, next section.
int readlink(const char *path, char *buf, size_t
bufsiz);
path: [in] points to the symlink to read.
buf: [out] points to the buffer where to put the information.
bufsiz: [in] the maximum size of the buffer.
Reads the content of a symlink.
On success, returns the number of bytes read. On error, returns -1 and
sets errno
to one of the following value:
EINVAL
: the path contains a character outside the [0,127]
range or the file is not a symlink.
ENOTDIR
, ENAMETOOLONG
, ENOENT
,
EACCESS
, ELOOP
, EIO
or EFAULT
.
Go to the previous, next section.