[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about C Programming.
Better ask this question where you have C experts i.i comp.lang.c
mailing list !!!
On Thu, Mar 5, 2009 at 12:49 PM, Ravi Sankar <ravisankar.g@xxxxxxxxx> 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.
>
--
Regards,
Sandeep.
“To learn is to change. Education is a process that changes the learner.”
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ