Passing arguments to Shared Function - C

Posted by SpyrosR on Stack Overflow See other posts from Stack Overflow or by SpyrosR
Published on 2012-11-21T22:50:40Z Indexed on 2012/11/21 22:59 UTC
Read the original article Hit count: 134

Filed under:
|
|

I have used dlopen to load an object and dlsym to get a function pointer to a shared object function. Everything works fine. I have tested it calling then the shared function which (for now) only prints and it works-prints fine in the main program calling it. Now I want to pass two arguments to this function. An int and a char * .Can anyone help me understand how can I pass arguments to a shared function? I have searched in the web but I cannot understand how it works.

© Stack Overflow or respective owner

Related posts about c

    Related posts about arguments