Loads and provides access to a shared library.
#include <dlfcn.h> void *dlopen ( const char *path, int mode);
(IN) Points to the path and name of the object.
(IN) Specifies how to open the object. You can OR one of the first two flags with either RTLD_GLOBAL or RTLD_LOCAL. This value can be ORed to RTLD_MULTIPLE:
If successful, returns a handle to the object. Otherwise, returns NULL and sets a value for dlerror.
The dlopen function returns a handle, which you can use on subsequent calls to dlsym to dynamically import a symbol.
If the path parameter is NULL, dlopen returns a handle to a global symbol object which can be used to request symbols that do not belong to a specific named library.
For sample code, see DLFcn.c.