c, function definition following struct

最后都变了- 提交于 2019-12-01 22:09:51

This is an old style of writing C functions where you could define a function like:

void foo(a)  /* Function and its arguments */
   int a; /* Define the type of the arguments */
{
  // Function body
}

What you have in your function, after removing the comments:

int ufs_aclcheck(ap)
    struct vop_aclcheck_args * ap;
{
   // Function body
}
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!