Message-ID: From: Robert Humphris To: "'djgpp AT delorie DOT com'" , "'Guilherme Silveira'" Subject: RE: Callbacks Date: Mon, 23 Jun 1997 09:18:56 +0100 Encoding: 38 TEXT Precedence: bulk >Please, can you give me an example with a function that returns an int and >got 2 parameters, one array of chars (70 chars) and one integer? okay.... > typedef int ( *SILVEIRAS_FN )( char array[], int number ); then // prototype the functions int someFunction( char stuff[], int something ); int otherFunction( char things[], int elephant ); void main() { SILVEIRAS_FN pfnCallback; .... pfnCallback = someFunction; pfnCallback(); } // define the functions that you prototyped earlier Rob Humphris > >--------------------------------------------------------------- >Guilherme Silveira - Sao Paulo - Brasil >carlos AT usway DOT com - thedarkage AT mail DOT geocities DOT com >http://www.geocities.com/SiliconValley/Way/5441/ >18/09/1981 - Until Today... > >