Lite-C does not known "functions" in C-Terms, but only "function pointers".

If you write
Code:
function foo()
{
  error("foo");
}
function bar()
{
  error("bar");
}



you have declared two function pointers foo and bar (which you can swap):

Code:
...
void * tmp = foo;
foo = bar;
bar = foo;

foo(); // will call error("bar")
bar(); // will call error("foo")
...



This allows monkey patching functions for your own needs laugh

Also: Function Prototypes (without definition) will not have the value NULL but a special value that will error "empty function called in ..."


Visit my site: www.masterq32.de