Declaration: 
int unlink(char file_name[]); 
Description 
Deletes a file. 
unlink deletes the file specified by file_name. Any drive, path, and file name can be used as the filename. Wildcards are not allowed. This call cannot delete read-only files. 
Note. If your file is open, be sure to close it before unlinking it. 
Returned Value 
On success, unlink returns 0. On error, it returns -1 and sets the errno global variable to one of the following values: 
EACCES       Permission denied 
ENOENT       Path or file name not found 
 |