Re: Stack Pointer..?
- From: C Wegrzyn <cginboston@xxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 18:56:46 GMT
mario.demiguel@xxxxxxxxx wrote:
>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.
>
>
>
Are you using gcc? If so you can get access to the frames, which will
help you figure out how you got to where you are.
.
- References:
- Stack Pointer..?
- From: 7trackers
- Re: Stack Pointer..?
- From: mario . demiguel
- Stack Pointer..?
- Prev by Date: More amusing C grammer
- Next by Date: volatile and "needed side effects"
- Previous by thread: Re: Stack Pointer..?
- Next by thread: Re: Stack Pointer..?
- Index(es):
Relevant Pages
|