Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Is there a NULL pointer to functions? Message-ID: <16269@smoke.brl.mil> Date: 27 May 91 01:37:55 GMT References: <1991May21.125639.10052@umiami.ir.miami.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 8 In article <1991May21.125639.10052@umiami.ir.miami.edu> devebw9f@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 )