How do I cast to "pointer to function returning int" ?
Charles Hannum
CMH117 at psuvm.psu.edu
Wed Apr 11 07:25:35 AEST 1990
In article <6090.2621f6c2 at csv.viccol.edu.au>, timcc at csv.viccol.edu.au says:
>
>So how do I cast to "pointer to function returning int" ?
Get yourself a copy of cdecl. Then:
cdecl
Type "help" or "?" for help.
cdecl> cast foo into pointer to function returning int
(int (*)())foo
cdecl> quit
IMHO, anyone who doesn't use cdecl is crazy.
BTW: Casting a void function to an int function is extremely non-portable.
Virtually,
- Charles Martin Hannum II "Klein bottle for sale ... inquire within."
(That's Charles to you!) "To life immortal!"
cmh117 at psuvm.{bitnet,psu.edu} "No noozzzz izzz netzzzsnoozzzzz..."
c9h at psuecl.{bitnet,psu.edu} "Mem'ry, all alone in the moonlight ..."
More information about the Comp.lang.c
mailing list