linux c 下获取文件大小
2014-07-29 15:50
260 查看
635 /* 636 * 获取文件大小 637 */ 638 int get_file_size(const char *filepath) 639 { 640 int filesize = 0; 641 struct stat statbuff; 642 643 if (stat(filepath, &statbuff) < 0) { 644 return filesize; 645 } else { 646 filesize = statbuff.st_size; 647 } 648 649 return filesize; 650 }
相关文章推荐
- linux获取文件大小
- linux获取文件大小
- linux下C获取文件的大小
- linux获取当前路径:pwd 查看当前文件大小:ls -hl
- linux下C获取文件的大小
- linux下C获取文件的大小
- linux下C获取文件的大小
- linux下获取文件大小
- Linux下获取文件大小的方法
- Linux下获取文件大小的方法
- linux获取文件大小[c]
- Linux 获取文件大小--C函数
- linux 下面获取文件大小
- Linux系统遍历文件夹 获取文件大小的操作(C语言实现)
- Linux下获取文件大小的方法
- linux获取文件大小
- linux下获取文件大小总结
- Linux下获取文件大小的方法
- linux下C获取文件的大小 .
- Linux 获取文件大小--C函数