On second thoughts, if I recall correctly an extern "C" around the function body would affect the calls inside the function, which ought to be CPP. I doubt it will let me write something like:

     static extern "C" xxx()

for all I know....