Go to the previous, next section.

link

SYNOPSIS

int link(const char *src, const char *new);

PARAMETERS

src: [in] points the the file we want to add a link to.

new: [in] points to the path for the new link.

DESCRIPTION

Creates a new (hard) link to a file. There is no way to distinguish the links.

RETURN VALUE

On success zero is returned. On error, -1 is returned and errno is set to one of the following values:

Go to the previous, next section.