23,120
社区成员
发帖
与我相关
我的任务
分享
int main()
{
struct stat buf;
stat("////etc",&buf);
if (S_ISDIR(buf.st_mode) == 0)
{
printf("\n\t/etc is not directory !\n\n");
//mkdir("/etc/123", 0755);
}
else
printf("\n\t/etc is directory !\n\n");
return 0;
}