How to know the "calling function"

How do I know the "calling function" to a function. To make clear, I give examples.

void funcA ()
{

}

the from the same or other programs, there are some functions call "funcA()".
Now from "funcA()" itself, how do I know the name of the function which calls "funcA()" ?

Any help is appreciated.

Abu
I don't really get the idea ?
What is the use of the name of calling function ?

It might sound stupid, but
you can use

1
2
3
4
void funcA(String callingFunName)
{

}


Or if you want to know exact which function with how many argument other, and how it called your function funcA(), is may be not possible to know directly...
A function can not know what code did call it.
Topic archived. No new replies allowed.