需要的头文件:
#include <sys/stat.h>
#include <unistd>
函数定义:
int stat(const char * file_name, struct stat *buf);
函数说明:
用于将参数file_name所指的文件状态复制到参数buf所指的结构中.
需要的头文件:
#include <sys/stat.h>
#include <unistd>
函数定义:
int stat(const char * file_name, struct stat *buf);
函数说明:
用于将参数file_name所指的文件状态复制到参数buf所指的结构中.