The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 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

Refer to rmdir() or unlink().

 ERRORS

Refer to rmdir() or unlink().

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

rmdir(), unlink(), <stdio.h>.

DERIVATION

Derived from the POSIX.1-1988 standard and ANSI C standard

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]