/* call_c.c goes with call_cc.cpp */ /* no main() in this file */ char call_cc(int x, float y); // function prototype // function defined in C++ #include char call_c(int x, float y) // simple C function { char c; /* x and y passed through */ printf("in c: about to call a C++ function\n"); c = call_cc(x, y); printf("in c: returned from call_cc with %c \n", c); printf("in c: x = %d, y = %g \n", x, y); return 'a'; // return something to C++ }