Linux access函數講解

函數:函數 #include<unistd.h> spa int access(const char* pathname, int mode);3d 參數介紹:code     pathname 是文件的路徑名+文件名blog     mode:指定access的做用,取值以下string F_OK 值爲0,判斷文件是否存在 X_OK 值爲1,判斷對文件是可執行權限 W_OK 值爲2,判斷對文
相關文章
相關標籤/搜索