File indexing completed on 2024-06-02 04:43:26
0001 #include <dlfcn.h> 0002 0003 typedef int (*ft)(int); 0004 0005 int main() 0006 { 0007 void* handle = dlopen("./libhelper.so", RTLD_LAZY); 0008 void* sym = dlsym(handle, "helper"); 0009 0010 ft f = (ft)sym; 0011 0012 f(10); 0013 f(15); 0014 return 0; 0015 }