📄 testso.c
字号:
#include <stdio.h>
#include <dlfcn.h>
int main(void)
{
void *handle;
char *error;
void (*welcome)( );
if ((handle = dlopen("./libttt.so", RTLD_LAZY)) == NULL)
{
printf ("dlopen error\n");
exit (1);
}
welcome = dlsym(handle, "welcome");
if ((error = dlerror()) != NULL)
{
printf ("dlsym error\n");
exit (1);
}
welcome ();
dlclose (handle);
exit (0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -