// (c) 2006 Richard Grimes // www.grimes.demon.co.uk #include // Unmanaged C code typedef void (*FUNC)(void); void f(unsigned int i, unsigned int j, unsigned int k) { // three parameters are taken from the stack printf("%08x %08x %08x\n", i, j, k); } void main() { FUNC fn = (FUNC)f; // stack is built assuming no parameters fn(); }