2021年3月18日星期四

Passing foo(int *) as argument to foo(void*) in X

A have a functions:

void somefunc(void func(void *)) { ... }    void foo(int *num) {...}   

I'm trying to pass foo as an argument to somefunc but receive a warning. What is the correct way to do this?

https://stackoverflow.com/questions/66697413/passing-fooint-as-argument-to-foovoid-in-x March 19, 2021 at 02:57AM

没有评论:

发表评论