Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Single UNIX Specification, Version 3 |
both | z/OS® V1R6 |
#define _UNIX03_SOURCE
#include <dlfcn.h>
void dlerror(void);
A null-terminated character string is returned if successful, otherwise NULL is returned.
...
#include <dlfcn.h>
char *errstr;
errstr = dlerror();
if (errstr != NULL)
printf ("A dynamic linking error occurred: (%s)\n", errstr);
...