- 论坛徽章:
- 0
|
/* com_fun.c */
#include <stdio.h>
#include "com_fun.h"
/* Function declartion */
int testHelloCProgram(char *pszVal);
int testHelloCPlusPlus(char *pszVal);
int testHelloJava(char *pszVal);
struct IIF_COMMON_TESTVtbl g_ComTestInterface =
{
testHelloCProgram,
testHelloCPlusPlus,
testHelloJava,
};
int testHelloCProgram(char *pszVal)
{
printf("[C]%s\n", pszVal);
return 0;
}
int testHelloCPlusPlus(char *pszVal)
{
printf("[CPP]%s\n", pszVal);
return 0;
}
int testHelloJava(char *pszVal)
{
printf("[JAVA]%s\n", pszVal);
return 0;
} |
|