dlerror() - report diagnostic information on dynamic linking
#include <dlfcn.h>
dlerror(void)
The dlerror(3) call returns a character string (null-terminated, with no trailing newline) that describes the most recent error during dynamic linking.
If there have been no errors since the last time dlerror(3) was called, it returns NULL.
After success, the dlerror(3) call returns a null-terminated character string. If it fails, it returns NULL.
dlclose(3)
dlopen(3)