Em 7/3/2012 10:57, Bob Ammerman escreveu: >> Sometimes I love how C can be obscure and powerful, when you can write >> something like this: >> >> ( (void (*)(void))0x4ff0 )(); >> >> >> ... and it works. >> >> >> Isaac > Completely non-standard, but it works on many (most?) platforms. > > -- Bob Ammerman > RAm Systems Completely standard and should work in every platform. The only non-standard thing is the fixed address, that will be platform-dependent. There are (not much) clearer ways to write it though: typedef void (*functionpointer_t)( void ); #define myfunc() ( (functionpointer_t)0x4ff0 )() .... myfunc(); .... Isaac --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .