功能参数
我必须在这个函数中放置什么作为第二个参数?我需要理解 int (*fn)(const char *, const struct stat *ptr, int flag) 的含义。
int
ftw(const char *path, int (*fn)(const char *, const struct stat *ptr, int flag),
int depth);
谢谢!
What I have to put as second parameter in this function? I need to understand the meaning of int (*fn)(const char *, const struct stat *ptr, int flag).
int
ftw(const char *path, int (*fn)(const char *, const struct stat *ptr, int flag),
int depth);
Thank you!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是一个指向函数的指针,该函数返回一个
int
并接受一个const char*
、一个const struct stat *
和一个int
。如果您有此函数:
您可以将
func
作为该参数传递。is a pointer to a function that returns an
int
and takes aconst char*
, aconst struct stat *
, and anint
.If you had this function:
You could pass
func
as that argument.