NAME
remove() — remove a file
SYNOPSIS
#include <stdio.h>
int remove(const char *path);
DESCRIPTION
remove()
removes the file named by
path.
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).
APPLICATION USAGE
remove()
is thread-safe. It is not async-cancel-safe.
A cancellation point may occur when a thread is executing
remove().
STANDARDS CONFORMANCE
remove(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C