天天看點

c回調函數

1. 準備三個檔案test.c, test.h, main.c

2. 編譯生成so檔案

3. 編譯生成main

通過函數指針回調函數

test.h

test.c

main.c

編譯test.so

編譯main

執行測試

c回調函數