Go to the previous, next section.

unlink

SYNOPSIS

int unlink(const char *path);

PARAMETERS

path: [in] points to the path of the file to unlink.

DESCRIPTION

Deletes a link to a file. If the file is not used and it was the last link, the file is also deleted.

RETURN VALUE

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

Go to the previous, next section.