delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/25/17:25:19

Message-Id: <3.0.32.19970623001934.00709674@mail.geocities.com>
Date: Mon, 23 Jun 1997 01:49:31 -0300
To: djgpp AT delorie DOT com
From: Guilherme Silveira <thedarkage AT mail DOT geocities DOT com>
Subject: RE: Callbacks
Mime-Version: 1.0

Let me see if I undestood

Define this function
>>	typedef int ( *SILVEIRAS_FN )( char array[], int number  );

Normal:
>// prototype the functions
>int someFunction( char stuff[], int something );
>int otherFunction( char things[], int elephant );


Main
>void main()
>{

What does it do?
	>    SILVEIRAS_FN  pfnCallback;
	>
	>    ....
	>
	>	pfnCallback = someFunction;
	>
	>	pfnCallback();
	>}
'Til here

??


Ok
>
>// define the functions that you prototyped earlier
>
>
>
>Rob Humphris
>
>>

Thanks

Guilherme

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019