28.6 Mixing C and C++ Code
It is possible for C++ code to call a C
function. The trick is that you need to
tell C++ that the function you are calling is written in C and not
C++. This is accomplished by declaring the function prototypes inside
an extern "C" block. For
example:
extern "C" {
extern int the_c_function(int arg);
}
|