dlerror (3)
Leading comments
Copyright 1995 Yggdrasil Computing, Incorporated. and Copyright 2015 Michael Kerrisk <mtk.manpages@gmail.com> %%%LICENSE_START(GPLv2+_DOC_FULL) This is free documentation; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU General Public License's references to "object code" and "executables" are to be interpreted as the output...
NAME
dlerror - obtain error diagnostic for functions in the dlopen APISYNOPSIS
#include <dlfcn.h>char *dlerror(void);
Link with -ldl.
DESCRIPTION
The dlerror() function returns a human-readable, null-terminated string describing the most recent error that occurred from a call to one of the functions in the dlopen API since the last call to dlerror(). The returned string does not include a trailing newline.dlerror() returns NULL if no errors have occurred since initialization or since it was last called.
VERSIONS
dlerror() is present in glibc 2.0 and later.ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).Interface | Attribute | Value |
dlerror() | Thread safety | MT-Safe |