hat zumindest erst mal beim Übersetzen nicht gemeckertCode:typedef long CBPtr(int, int); typedef struct test { int id; CBPtr *callback; } test; long callback_func( int a, int b) { return a+b;; } int main() { ... test test1; test1.id = 100; test1.callback = callback_func; ... }
sast
Lesezeichen