Is there a NULL pointer to functions?

Doug Gwyn gwyn at smoke.brl.mil
Mon May 27 11:37:55 AEST 1991


In article <1991May21.125639.10052 at umiami.ir.miami.edu> devebw9f at miavax.ir.miami.edu writes:
>As the subject heading says, is there a NULL pointer to functions?

Sure, just cast 0 to the appropriate function-pointer type.

>      if (fun != NULL)            /* Line with the warning. */

	if ( fun != (void(*)(void))0 )



More information about the Comp.lang.c mailing list