Hi Csaba, In a compliant C compiler you would write: // Declare a pointer to a function taking a single char arg and no return type typedef void (*VoidFuncPtrType)(char); // Create a function pointer (use in a struct etc) VoidFuncPtrType pMyFunctionPointer; // Implement a function that can be assigned to this pointer // You could also forward declare this and implement it later void MyFunction( char index ) { ... } // Assign my function to the pointer using the "address" of the function pMyFunctionPointer = &MyFunction; // Call the function through the pointer. pMyFunctionPointer( 1 ); Does that help? The big question is does your PIC compiler actually support function pointers :) Cheers, Ash. --- Ashley Roll Digital Nemesis Pty Ltd www.digitalnemesis.com Mobile: +61 (0)417 705 718 > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Also-Antal Csaba > Sent: Monday, 4 February 2002 9:39 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: [pic]: predec > > > How can I pre declarate the 'menu' function? This code give > this linker > (?) error: > > ::undefined symbol: (error) > ::?_menu (main.obj) (error) > > udv > Csaba > > //menu definitions > > typedef void voidfunc(char index); > typedef voidfunc *fad; > > voidfunc menu; > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body