#62100 - undefined - Sun Nov 27, 2005 12:39 pm
Is it possible to cast a function pointer for a function that takes a char argument into a function pointer that takes no arguments?
What I've got is basically two functions:
What I'd like to be able to do is this, but I'm not sure if it will result in stack trashing or something equally evil:
At this time I don't have a unit to try the code on either (I traded my SP for an old shitty computer, STUPIDSTUPIDSTUPID), so for now all I've really got to tell me if my code's even somewhat sane is gcc.
What I've got is basically two functions:
Code: |
void RBCReadCapacityCommand(UInt8 byte);
SIOWaitForClearToSendWithCallback(void (*clearToSendCallback)(void)); |
What I'd like to be able to do is this, but I'm not sure if it will result in stack trashing or something equally evil:
Code: |
SIOWaitForClearToSendWithCallback(&RBCReadCapacityCommand) |
At this time I don't have a unit to try the code on either (I traded my SP for an old shitty computer, STUPIDSTUPIDSTUPID), so for now all I've really got to tell me if my code's even somewhat sane is gcc.