i have a c-application which should load a shared object at runtime and call an arbitrary function of the shared object. The shared object was build by the user and gave me the signature of his function.
int func(int a, int b, double c)
i use dlopen to load the object and dlsym to get a function pointer to the shared object function. Now i have to pass the parameter to the function. I don t now the signature at compile time. Whats the best way to do it? Is there any chance to check signature before i call function in my application?