dlerror
dlerror is a function in the dynamic linking facilities of Unix-like systems. It provides a human-readable description of the most recent error reported by the dynamic linker when using dlopen, dlsym, or dlclose. The function is declared in the header dlfcn.h and is part of the standard dynamic linker interface on POSIX-compliant platforms. The returned message is intended for debugging and logging.
dlerror returns a pointer to a null-terminated string describing the last error. The string is kept per-thread,
If there is no error, the returned pointer is NULL. If an error occurred, the returned pointer
The error state is thread-local, allowing concurrent threads to report separate messages. The message is not
dlerror is available on most Unix-like systems, including Linux, macOS, and BSD variants. It is not part