is this question relevant to this community? you should try comp.lang.c. On Thu, Mar 5, 2009 at 12:49 PM, Ravi Sankar <ravisanka...@gmail.com> wrote:
> Hi, > > I would like to know how can I get the function name of the caller in c?. > > Like > // c code > > void foo(void) > { > > bar(); > } > > void bar(void) > { > // who is my caller? > } > > I don't want to change the caller function code to add arguments etc. > Even I don't have access to the caller function source code. > > Thanks for your help. > > -- > --, > BR, > Ravi Sankar Guntur. >