- 论坛徽章:
- 1
|
原帖由 timepie 于 2007-11-16 20:23 发表 ![]()
:em11: :em11: :em11:
没有rmdir这个函数啊……
怎么会没有?
RMDIR(2) Linux Programmer’s Manual RMDIR(2)
NAME
rmdir - delete a directory
SYNOPSIS
#include <unistd.h>
int rmdir(const char *pathname);
DESCRIPTION
rmdir() deletes a directory, which must be empty.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is
set appropriately.
ERRORS
EACCES Write access to the directory containing pathname was not
allowed, or one of the directories in the path prefix of path‐
name did not allow search permission. (See also path_resolu‐
tion(2). |
|