#include <dlfnc.h>const char *dlerror(void);
Return a null-terminated string describing the last error that occurred during a call to dlopen, dlsym, or dlclose. After a call to dlerror, the error status is reset, and a subsequent call will return a NULL pointer.
Returns a null-terminated string, or NULL if there is no error to report.