Linux下的stat函数

stat 函数 函数原型 #include <sys/stat.h> int stat(const char *file_name, struct stat *buf); 函数说明: 经过文件名filename获取文件信息,并保存在buf所指的结构体stat中web 返回值: 执行成功则返回0,失败返回-1,错误代码存于errnoapp struct stat 结构体 struct stat {
相关文章
相关标签/搜索