Typecast of Pointers to Functions
Farrell Woods
ftw at masscomp.UUCP
Thu Mar 30 02:22:19 AEST 1989
In article <7689 at killer.Dallas.TX.US> brian at 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 at masscomp.com
1 Technology Way uucp: {backbones}!masscomp!ftw
Westford, MA 01886 OS/2: Half an operating system
More information about the Comp.lang.c
mailing list