Re: Stack Pointer..?
- From: Jack Klein <jackklein@xxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 22:06:14 -0500
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
.
- References:
- Stack Pointer..?
- From: 7trackers
- Re: Stack Pointer..?
- From: mario . demiguel
- Stack Pointer..?
- Prev by Date: Re: Binary Tree
- Next by Date: Re: Realloc destroys?
- Previous by thread: Re: Stack Pointer..?
- Next by thread: Re: Stack Pointer..?
- Index(es):
Relevant Pages
|