lip*_*une 1 c static types declaration
struct ast_channel *(* const requester)(const char *type, int format, void *data, int *cause);
Run Code Online (Sandbox Code Playgroud)
这条线的意义是什么?
第二个问题:使用的优点是什么
static struct hello
{
int a;
chat b;
};
Run Code Online (Sandbox Code Playgroud)
简单地说
struct hello
{
int a;
};
Run Code Online (Sandbox Code Playgroud)
另外,static char p[]和之间有什么区别char p[];?
我的C有点生疏:requester是一个指向函数的常量指针,该函数返回指向ast_channel结构的指针.
看这些文章:
static关键字的含义取决于声明在代码中的显示位置.在函数内部,它表示变量不应该放在堆栈上而是放在数据段中,并且当函数超出范围(即未运行)时是持久的.在函数外部,它表示该变量在其所在的文件之外是不可访问的.
| 归档时间: |
|
| 查看次数: |
282 次 |
| 最近记录: |