Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ulowell!masscomp!ftw From: ftw@masscomp.UUCP (Farrell Woods) Newsgroups: comp.lang.c Subject: Re: Typecast of Pointers to Functions Keywords: pointers, functions, typecast Message-ID: <1642@masscomp.UUCP> Date: 29 Mar 89 16:22:34 GMT References: <7689@killer.Dallas.TX.US> Reply-To: ftw@quasar.masscomp.UUCP (Farrell Woods) Distribution: usa Organization: Concurrent Computer Corporation - Westford, Ma Lines: 19 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: [example deleted] >Any Suggestions? Thanks. Easy. Try this: fcn_ptr2 = (int (*)())0; Note that I did not use the NULL macro, since it is not always correctly defined. -- Farrell T. Woods Voice: (508) 392-2471 Concurrent Computer Corporation Domain: ftw@masscomp.com 1 Technology Way uucp: {backbones}!masscomp!ftw Westford, MA 01886 OS/2: Half an operating system