Go to the previous, next section.

readlink

SYNOPSIS

int readlink(const char *path, char *buf, size_t bufsiz);

PARAMETERS

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.

DESCRIPTION

Reads the content of a symlink.

RETURN VALUE

On success, returns the number of bytes read. On error, returns -1 and sets errno to one of the following value:

Go to the previous, next section.