UNLINK - remove a file.

(Slightly different from UNIX function)

Usage:

unlink( name );

Where:

char *name;
is the name of the file to be removed.

Description:

"unlink" deletes the given file. The file should not be open at the time that "unlink" is executed.

Possible Errors:

errno=EACCES
The given name is a directory, not a file.
errno=ENOENT
There is no file or directory with the given name.

Notes:

This function is only supplied for compatibility with old programs. New programs should use the ANSI standard "remove".

See Also:

expl c lib errno

Copyright © 1996, Thinkage Ltd.