1remove(3C)               Standard C Library Functions               remove(3C)
2
3
4

NAME

6       remove - remove file
7

SYNOPSIS

9       #include <stdio.h>
10
11       int remove(const char *path);
12
13

DESCRIPTION

15       The  remove() function causes the file or empty directory whose name is
16       the string pointed to by path to be no longer accessible by that  name.
17       A  subsequent  attempt  to  open  that  file using that name will fail,
18       unless the file is created anew.
19
20
21       For  files,  remove()  is  identical  to   unlink().  For  directories,
22       remove() is identical to rmdir().
23
24
25       See rmdir(2) and unlink(2) for a detailed list of failure conditions.
26

RETURN VALUES

28       Upon  successful  completion, remove() returns 0. Otherwise, it returns
29       −1 and sets errno to indicate an error.
30

ATTRIBUTES

32       See attributes(5) for descriptions of the following attributes:
33
34
35
36
37       ┌─────────────────────────────┬─────────────────────────────┐
38       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
39       ├─────────────────────────────┼─────────────────────────────┤
40       │Interface Stability          │Standard                     │
41       ├─────────────────────────────┼─────────────────────────────┤
42       │MT-Level                     │MT-Safe                      │
43       └─────────────────────────────┴─────────────────────────────┘
44

SEE ALSO

46       rmdir(2), unlink(2), attributes(5), standards(5)
47
48
49
50SunOS 5.11                        14 Aug 2002                       remove(3C)
Impressum