Xref: utzoo comp.lang.c:27741 gnu.gcc:1543 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!psuvax1!psuvm!cmh117 From: CMH117@psuvm.psu.edu (Charles Hannum) Newsgroups: comp.lang.c,gnu.gcc Subject: Re: How do I cast to "pointer to function returning int" ? Message-ID: <90100.172535CMH117@psuvm.psu.edu> Date: 10 Apr 90 21:25:35 GMT References: <6090.2621f6c2@csv.viccol.edu.au> Organization: Penn State University Lines: 23 In article <6090.2621f6c2@csv.viccol.edu.au>, timcc@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@psuvm.{bitnet,psu.edu} "No noozzzz izzz netzzzsnoozzzzz..." c9h@psuecl.{bitnet,psu.edu} "Mem'ry, all alone in the moonlight ..."