⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tellattr.c

📁 C
💻 C
字号:
#include <stdio.h>
#include <dos.h>
#include <io.h>

void main(int argc, char *argv[])
 {
   int attributes;

   if ((attributes = _chmod(argv[1], 0)) == -1)
     printf("Error accessing %s\n", argv[1]);
   else
     {
         if (attributes & FA_ARCH)
           printf("Archive ");

         if (attributes & FA_DIREC)
           printf("Directory ");
         
         if (attributes & FA_HIDDEN)
           printf("Hidden ");
         
         if (attributes & FA_LABEL)
           printf("Volume label ");
         
         if (attributes & FA_RDONLY)
           printf("Readonly ");

         if (attributes & FA_SYSTEM)
           printf("System ");
     }
 }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -