~tim/dlopen_test

ref: 3a52170d7c7d07422893e23c810946d3d309c0df dlopen_test/lib.c -rw-r--r-- 197 bytes View raw
3a52170dTim Morgan Update readme 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#include "stdio.h"

void __attribute__ ((constructor)) lib_loaded(void);

void lib_loaded(void) {
  printf("hello from lib_loaded\n");
}

void lib_func(void) {
  printf("hello from lib_func\n");
}