Home > Back-end > How C language from the source function to obtain the address of a function pointer pointing to it
How C language from the source function to obtain the address of a function pointer pointing to it
Time:09-17
Assume that there are multiple function pointer, the function pointer is a member of the structure variable, These function Pointers point to the same source function, When the change from a function pointer call source function, how to obtain the function from the source function pointer address, Description as shown in the appended drawings, Please give complete ideas and code,
CodePudding user response:
As if in front of the ebp
CodePudding user response:
Seem to do less than, can be in fn_t, add a parameter test *, typedef int (* fn_t) test (*) Or to define him as a member of the test function typedef int (test: : * fn_t) ()