Deletes the specified symbolic link from the system. This function is supported on OpenVMS Integrity servers and Alpha only. Format #include <unistd.h> int unlink (const char *link_name);
1 – Arguments
link_name The name of the symbolic link to be deleted.
2 – Description
The unlink function deletes the specified symbolic link (link_ name) from the system. The contents of the symbolic link are not examined, and no action is performed on the file specified in the contents. For other files, the unlink function behaves the same as the C RTL remove function. See also symlink, readlink, realpath, lchown, and lstat.
3 – Return Values
0 Successful completion. -1 Indicates an error. The named file (link_name) is unchanged, and errno is set to any errno value from remove.