bzchevalier
12-22-2003, 07:59 AM
Hello,
Do you know, please, if it exists a function or a macro that gives the name of the function (name in the source code) where we are at this point of the program execution.
It my question is not very clear, here is a code example :
void my_function (char *prefix)
{
fprintf(stderr,"[%s] Here we are in : %s",prefix,help_me(which_param));
}
help_me() is the name of the function that I search. And the execution of my_function whould display :
[my_prefix] Here we are in : my_function
If this function doesn't exist in system calls or C library, can we write it in a simply way ?
Thanks in advance for all your indications.
bzchevalier
Do you know, please, if it exists a function or a macro that gives the name of the function (name in the source code) where we are at this point of the program execution.
It my question is not very clear, here is a code example :
void my_function (char *prefix)
{
fprintf(stderr,"[%s] Here we are in : %s",prefix,help_me(which_param));
}
help_me() is the name of the function that I search. And the execution of my_function whould display :
[my_prefix] Here we are in : my_function
If this function doesn't exist in system calls or C library, can we write it in a simply way ?
Thanks in advance for all your indications.
bzchevalier