- 博客(2)
- 收藏
- 关注
原创 关于Linux下的stat()函数
关于Linux下的stat()函数的使用规则 文章目录一、stat()的组成二、具体使用1.简单的ls程序2.运行结果如下 一、stat()的组成 头文件 #include <sys/stat.h> #include <unistd.h> 定义函数: int stat(const char *file_name, struct stat *buf); 函数说明: 通过文件名filename获取文件信息,并保存在buf所指的结构体stat中 返回值: 执行成
2021-03-28 16:30:43
7739
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅