Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sol.ctr.columbia.edu!emory!hubcap!lsalomo From: lsalomo@hubcap.clemson.edu (lsalomo) Newsgroups: comp.lang.c Subject: Re: ANSI C -> non-ANSI C Message-ID: <12002@hubcap.clemson.edu> Date: 2 Dec 90 00:17:25 GMT References: <12000@hubcap.clemson.edu> Organization: Clemson University, Clemson, SC Lines: 22 From article <12000@hubcap.clemson.edu>, by lsalomo@hubcap.clemson.edu (lsalomo): > Help! > > I'm trying to define a typedef for a function pointer which takes an integer > for a parm. > > typedef (void *pfn)(int); It should be typedef void (*pfn)(int); Thanks to those who responded! Cheers, Q - the "Q"uestor for knowledge (, a degree, etc.) lsalomo@hubcap.clemson.edu ibmman@clemson.clemson.edu ============================================================================= "Gee Wally, I think there's something wrong with the Beaver." ============================================================================= Brought to you by Super Global Mega Corp .com