qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FUNCPTR1.C
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
/* FUNCPTR1.C: Passing function pointers as arguments. */
#include <stdio.h>
 
void gimme_func( void (*func_ptr) () );
 
main()
{
   gimme_func( puts );
   gimme_func( printf );
}
 
void gimme_func( void (*func_ptr) () )
{
   (*func_ptr) ( "Ausgezeichnet!" );
}