Discussion in 'C' started by heena.mca, Mar 13, 2008.
How can I call a non-system C function f(int,char,float) from my C++ code?
just as from C function.
One thing c++ mangling will happen. Just define extern C.
// Suppose this is your c++ file code
//Include that file also where definition of f is written
f(int , char , float );
f(1, 'g', 1.1); /// No Name mangling happen
Separate names with a comma.