How to declare a function pointer that has C linkage?

前端 未结 0 316
暗喜
暗喜 2020-12-15 18:04

I\'ve been using C++ code like this for years

void(*ptr)(int) = &func;

and not until today did I notice the function pointer has C++ link

相关标签:
回答
  • 消灭零回复
提交回复
热议问题