I have a function pointer that contains the address of function. I do not want any linux function. I want to compile my code with gcc without any option. gcc -g my_code.c only.
int (*funPtr)(int,int); int testFunction(int a, int b) { printf("function:%s\n",\__func__); //Function code } int main() { funPtr=testFunction; funPtr(0,0); return 0; }
I am not sure ,If you are looking for this.