PDA

View Full Version : how to getmethod() in C


tchenpex
07-01-2005, 10:21 PM
Hi all, newbie here

/* For ControlMessageHandler */
void
onControlMessage(ControlMessageCode controlMessageCode, PCXSTRING optionalArgument) {
fprintf(fp,"\nReceived Control Message and optionalArgument %d, %s\n",controlMessageCode, optionalArgument);
checkresponse("ControlMessageCode","");
}

part of the control message handler that will be receiving call from remote machine,

how do I get it to printf its own function name in C?
something like

printf(getmethod()); ?

tricolaire
07-02-2005, 12:34 AM
first up, as I've been saying in other posts, THERE ARE NO BLOODY METHODS IN C!!! so no go on the getmethod() function as far as I know ;)

ok, as for the name.

since you know where you're placing the call (ie: in which function), why not just say:

printf("/*insert name of function here*/");

?