remove(3)
Name
remove − removes files
Syntax
remove (path)
char *path;
Arguments
pathProvides the specification for a file or directory.
Description
The remove library function removes a file. If the path does not name a directory then remove(path) is equivalent to unlink(path). If the path does name a directory then remove(path) is equivalent to rmdir(path).
Return Value
A 0 is returned if the remove succeeds; otherwise a −1 is returned and an error code is stored in the global location errno.