标签:pes har 语言 bytes get amp 函数 unsigned class
#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> int stat(const char *pathname, struct stat *buf); int main(int argc,char **argv) { struct stat statbuf; if(stat(argv[1], &statbuf)) { printf("get file(%s) stat fail.\n",argv[1]); } printf("input file path is = %s\n", argv[1]); printf("file size is %llu bytes\n",(unsigned long long int)statbuf.st_size); return 0; }
标签:pes har 语言 bytes get amp 函数 unsigned class
原文地址:https://www.cnblogs.com/grooovvve/p/14851459.html