Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!ingr!crossgl From: crossgl@ingr.com (Gordon Cross) Newsgroups: comp.lang.c Subject: Re: Typecast of Pointers to Functions Keywords: pointers, functions, typecast Message-ID: <4694@ingr.com> Date: 29 Mar 89 15:04:59 GMT References: <7689@killer.Dallas.TX.US> Reply-To: crossgl@ingr.UUCP (Gordon Cross) Distribution: usa Organization: Intergraph Corp. Huntsville, AL Lines: 20 In article <7689@killer.Dallas.TX.US> brian@killer.DALLAS.TX.US (Brian Pellerin) writes: }I am looking for an equivalent way to specify a typecast of a pointer to }a function other than using typedef. For Example: } } typedef int (*FCN_PTR) (); } FCN_PTR fcn_ptr1; } int (*fcn_ptr2) (); } } fcn_ptr1 = (FCN_PTR) NULL; /* Typecast using typedef */ } fcn_ptr2 = (???????) NULL; /* Do Not Use the typedef. What Goes Here? */ Sure-- fcn_ptr2 = (int (*)()) NULL; -- Gordon Cross UUCP: uunet!ingr!crossgl "all opinions are 111 Westminister Way INTERNET: crossgl@ingr.com mine and not those Madison, AL 35758 MA BELL: (205) 772-7842 of my employer."