Пример #1
0
int VoidSet()
{
	printf("===VoidSet");

	void *  filehandle = dlopen("libRongIMLib.so", RTLD_LAZY );
	if (filehandle == 0)
	{
		printf("===fail");
		return -1;
	}

	int (*FuncA)() = 0;
	FuncA = (int(*)())dlsym(filehandle, "SetSaveLogToFileFlagForAndroid");
	if (FuncA == 0)
	{
		printf("===null");
		dlclose(filehandle);
		return -2;
	}

	int nSet = FuncA();
	dlclose(filehandle);

	printf("===ok");

	return 0;
}
Пример #2
0
int main()
{
    printf("graph:\n"
           "  tst-2 -> b -> a\n"
           "           c -> a\n"
           "           d -> a\n"
           "           a\n");
    return FuncA() + FuncB() + FuncC() + FuncD();
}
Пример #3
0
MY_EXPORT(int) FuncB(void)
{
    return FuncA();
}
Пример #4
0
int main()
{
    unsigned u;
    u = FuncA() | FuncB() | FuncC();
    return u == 0x42424242 ? 0 : 1;
}