#include #include #undef __FUNCT__ #define __FUNCT__ "printint" extern "C" void printint(int i) { printf("\nThis is %s\n",__FUNCT__); printf(" i is %i\n",i); } #undef __FUNCT__ #define __FUNCT__ "printintptr" extern "C" void printintptr(int *i) { printf("\nThis is %s\n",__FUNCT__); printf(" i is %i\n",*i); } #undef __FUNCT__ #define __FUNCT__ "printintarray" extern "C" void printintarray(int *i,int n) { int l; printf("\nThis is %s\n",__FUNCT__); for (l = 0; l < n; l++) { printf(" l[%i]=%i\n", l,i[l]); } } #undef __FUNCT__ #define __FUNCT__ "printconstcharlist" extern "C" void printconstcharlist(const char *const*list,int n) { int i; printf("\nThis is %s\n",__FUNCT__); for (i=0; i