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

📄 autoinfo.c

📁 C语言常用的程序900例
💻 C
字号:
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <sys\stat.h>
#include <time.h>

void main(void)
  {
    int handle;

    struct stat buffer;

    if ((handle = open("\\AUTOEXEC.BAT", O_RDONLY)) == -1)
     printf("Error opening \\AUTOEXEC.BAT\n");
    else
      {
        if (fstat(handle, &buffer))
          printf("Error getting file information\n");
        else
          printf("AUTOEXEC.BAT is %ld bytes Last used %s\n",
            buffer.st_size, ctime(&buffer.st_atime));
        close(handle);
      }
 }

           

⌨️ 快捷键说明

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