i'm writing a program and have created a generic error routine that writes
text to stderr called warn() which takes a parameter of type char* which
is the error to display, it then writes out 'Warning:
[whatever-char*-was]'. What i'd like to do is have it prefix it with the
name of the function that called it (i.e so if i was in some func called
foo() and it called warn() the error would look like this : 'foo()
Warning: blah').
this possible?... without having to manually write the name of the
function in myself?