Mail Archives: djgpp/1997/06/23/04:15:12
>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...
>
>
- Raw text -