It was thus said that the Great Sean 'Captain Napalm' Conner once stated:
I know in C it is possible to pass an address of
a function to a function,
that's not really what I mean.
It violates ANSI C, and it certainly isn't portable, but yes, it can be
done. Maybe. And when you get it working (I didn't, but I'm not going to
waste much time on this), make sure you remember how you compiled it,
because any changes in compiler options will set you back to square one.
Okay, figured out why my code didn't work, and it's not due to writing to
the wrong location (although I suspect that still is a problem) but that
under Unix the code pages are marked read-only so of course it core dumped.
-spc (Another reason why self-modifying code is hard to do in C 8-P