Hello,
These are construction of code that you can use before the return of
dlopen and after dlclose. For example:
void _init ()
{
printf ("init print.\n");
}
void _fini ()
{
printf ("fini print.\n");
}
The code in _init function will be run before the return of dlopen to your
program and the code in _fini will be run before the return of dlopen to
your program. You just have to put the code you actually need inside these
functions.
I hope it can help you.
Good Luck.
>Hi,
> While loading Dylibs i want to write my own __init,__fini
>functions.Would you please tell me how to write those functions >please.
>
>Raja