REMOVE(3) Library Functions Manual REMOVE(3)
NAME
remove — remove
files
SYNOPSIS
#include <stdio.h> int remove(const char *path);
DESCRIPTION
The remove() function causes the file named by the pathname pointed to by path to be no longer accessible by that name. A subsequent attempt to open that file using that name will fail, unless it is created anew.
If path does not name a directory,
remove ( path) is equivalent to
unlink (
path).
If path names a directory,
remove ( path) is equivalent to
rmdir (
path).
RETURN VALUE
ERRORS
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
DERIVATION
Derived from the POSIX.1-1988 standard and ANSI C standard
February 1997 posix.fail