I want to know about the function name that is pointed function like
below.
sometimes, I could use the __FUNCTION__ but, that macro could be used
in the printf () or printk ().
In my case,for example, there are so many function like commando(),
rambo(), xman() and spiderman(). but, I don't know exact name of
hunter function is pointed by the other function
how do I know that the real function name of pointed by hunter().
I can only change main function.....
not rambo, or commando function.
do you understand my content???
I cannot english very well.
plz comment this problem...
Is this possible or impossible
#include<stdio.h>
void (*hunter)(void);
void commando(void){
printf("I am commando\n");
}
void rambo(void){
printf("I am rambo\n");
}
int main(void)
{
hunter=rambo;
hunter();
return 0;
}