23,217
社区成员




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;
}