C and C++ call

1. c++ call c function

#ifdef __cplusplus
extern "C"
{
#endif

void fun1(int n);

void fun2(int n);

#ifdef __cplusplus
}
#endif

你可能感兴趣的:(C and C++ call)