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 {
相關文章
相關標籤/搜索