using function from loadable library
First of all i want to apologies for my english, I'm french so if you have any trouble understanding what I'm saying just tell it to me thanks in advance.

I'm a developer in a security company and in my project, i have to use a .dylib library (that i made myself and compiled myself..). Moreover, i have to load at runtime the functions of this lib and not link this last to my executable.

And here's my matter, i'm kinda troubled using the posix loadable lib functions dlopen, dlsym..etc and i would ask you how to simply get a return value in one of my lib's function 

For example my lib has a function " int GetNamed (char *) ... return Identification->Name " and I want to get the value of my chained list "Identification->Name" which is an "int" type and print it in the console, using dlopen and dlsyms functions ! 

Sorry again for my english and thanks for responding me 

Kind regards
using function from loadable library
===

First of all i want to apologies for my english, I'm french so if you have any trouble understanding what I'm saying just tell it to me thanks in advance.

I'm a developer in a security company and in my project, i have to use a .dylib library (that i made myself and compiled myself..). Moreover, i have to load at runtime the functions of this lib and not link this last to my executable.

And here's my matter, i'm kinda troubled using the posix loadable lib functions dlopen, dlsym..etc and i would ask you how to simply get a return value in one of my lib's function 

For example my lib has a function " int GetNamed (char *) ... return Identification->Name " and I want to get the value of my chained list "Identification->Name" which is an "int" type and print it in the console, using dlopen and dlsyms functions ! 

Sorry again for my english and thanks for responding me 

Kind regards