filesize.c
来自「unix linux 编程实践源代码」· C语言 代码 · 共 15 行
C
15 行
/* filesize.c - prints size of passwd file */#include <stdio.h>#include <sys/stat.h>int main(){ struct stat infobuf; /* place to store info */ if ( stat( "/etc/passwd", &infobuf) == -1 ) /* get info */ perror("/etc/passwd"); else printf(" The size of /etc/passwd is %d\n", infobuf.st_size );}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?