From: "George Kinney" Subject: Re: How to declare pointers Newsgroups: comp.os.msdos.djgpp References: <01bc8e70$7560c9d0$0417a8c0 AT aksoft-nt> <5qjteg$nl2 AT ds2 DOT acs DOT ucalgary DOT ca> Organization: The Unknown Programmers Message-ID: <01bc9322$2bbfea20$ed8033cf@pentium> NNTP-Posting-Host: 207.51.128.237 Date: 18 Jul 97 02:18:53 GMT Lines: 32 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Paul Szuch wrote in article <5qjteg$nl2 AT ds2 DOT acs DOT ucalgary DOT ca>... > On a vaguely related note: how do you declare pointers to functions? > void a_function( int a ) { printf( "%i\n", a ); } void another_function( void (*func)(int) ) { func( 1 ); } int main( void ) { void (*func_to_call)(int); func_to_call = a_function; another_function( func_to_call ); } so, a function with no args: void (*func)(); a functions that takes an int and a char* void (*func)(int,char *); I think you can carry on from here. :)