Re: Stack Pointer..?



On 10 Oct 2005 11:48:02 -0700, mario.demiguel@xxxxxxxxx wrote in
comp.lang.c:

>
> 7trackers@xxxxxxxxx wrote:
> > Hi people...
> >
> > Here's my question...
> >
> > a function other than main is getting executed
> > you have to find out which function called this function
> >
> > how can we do in C...?
>
> I believe using __FUNCTION__ will show the current function's name, I'm
> not sure about showing the calling function's name. My best advice,
> try searching the groups for __FUNCTION__ to see if this question, or a
> similar one, has already been answered.

Unfortunately, this isn't anything in the standard C language.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
.



Relevant Pages