功能: 确定文件的访问权限用法: int access(const char *filename, int amode);finename 文件名称mode 模式,共5种模式:0-检查文件是否存在shell开发。1-检查文件是否可运行2-检查文件是否可写访问4-检查文件是否可读访问6-检查文件是否可读/写访问例:判
先看下简单的初始代码:注意其编译运行后的结果。root@xuanfei-desktop:~/cpropram/2# cat global.h //头文件#ifndef CLOBAL_H #define GLOBAL_H #include <stdio.h> int funca(void); int funcb(void);#endifroot@xuanfei-desktop:~/cpropram/2# cat fu