刚才看到APUE(高级UNIX环境编程)里面的apue.h中有一行

typedef void Sigfunc(int);

没搞懂什么意思

其实就是定义一个函数指针类型,等价于

typedef void (*Sigfunc)(int)

 

参考资料:

http://blog.csdn.net/dingyuanpu/article/details/5572362

http://www.cnblogs.com/shenlian/archive/2011/05/21/2053149.html

相关文章:

  • 2021-12-12
  • 2021-12-10
  • 2021-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-06-23
  • 2022-12-23
  • 2021-12-29
猜你喜欢
  • 2021-11-26
  • 2021-07-26
  • 2022-12-23
  • 2021-10-13
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案