摘要:
stat函数讲解表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf);函数说明: 通过文件名filename获取文件信息,并保存在buf所指的结构体stat中返回值: 执行成功则返回0,失败返... 阅读全文
posted @ 2015-07-27 10:12
matthew2015
阅读(10931)
评论(0)
推荐(0)
摘要:
_stat函数的功能_stat函数用来获取指定路径的文件或者文件夹的信息。函数声明int _stat( const char *path, struct _stat *buffer );参数:path——文件或者文件夹的路径buffer——获取的信息保存在内存中返回值:正确——返回0错误——... 阅读全文
posted @ 2015-07-27 10:07
matthew2015
阅读(6635)
评论(0)
推荐(0)
浙公网安备 33010602011771号