Returns a string describing the last error.
#include <dlfcn.h> char *dlerror( void );
Returns a null-terminated character string describing the last error that occurred during a dlopen, dlclose, or dlsym call. Returns NULL if no error has occurred.
The following errors return the string listed in the table.
The dlerror function returns a null-terminated character string (with no trailing <newline>) that describes the last error that occurred during dynamic linking processing. If no dynamic linking errors have occurred since the last invocation of dlerror, dlerror returns NULL. Thus, invoking dlerror a second time, immediately following a prior invocation, results in NULL being returned.
This string is never localized.
For sample code, see DLFcn.c.