dev0.c 238 B

123456789101112131415161718
  1. #include <dlfcn.h>
  2. #include <stdio.h>
  3. int main (int argc, char *argv[])
  4. {
  5. void * h;
  6. int res;
  7. h = dlopen("libBB0.so", RTLD_LAZY | RTLD_GLOBAL);
  8. if (h != NULL) {
  9. res = 0;
  10. } else {
  11. perror(dlerror());
  12. res = 1;
  13. }
  14. return res;
  15. }