G
GVK
Hi,
I've written a piece of network code in C. I'm pritting lots of
debugging information, just in case the program is screwed
Is there
any built-in function that gives the name of the function from which it
is called? For example,
int foo()
{
print_function_name(); /* some built-in system call */
}
should output the name as "foo()" or somewhat similarly. I've been
coding in C for almost 2 and half years but never used such a function
till now. Any help is appreciated.
regards,
GVK
I've written a piece of network code in C. I'm pritting lots of
debugging information, just in case the program is screwed
any built-in function that gives the name of the function from which it
is called? For example,
int foo()
{
print_function_name(); /* some built-in system call */
}
should output the name as "foo()" or somewhat similarly. I've been
coding in C for almost 2 and half years but never used such a function
till now. Any help is appreciated.
regards,
GVK