summaryrefslogtreecommitdiff
path: root/ext/dl/eg/test1.c
blob: fc7b1b2cc23d24d3cd50671469c96a7f2c9bc464 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <dlfcn.h>

test1()
{
    void	*obj;
    void	(*proc)();

    obj = dlopen("test", 1);
    proc = (void (*)())dlsym(obj, "test");
    proc();
}