1 | #include <dlfcn.h> |
---|---|
2 | #include <stdio.h> |
3 | |
4 | int |
5 | main (void) |
6 | { |
7 | if (dlopen (file: "nodlopenmod.so", RTLD_LAZY) != NULL) |
8 | { |
9 | puts (s: "opening \"nodlopenmod.so\" succeeded, FAIL"); |
10 | return 1; |
11 | } |
12 | |
13 | puts (s: "opening \"nodlopenmod.so\" failed, OK"); |
14 | return 0; |
15 | } |
16 |