ANSI C -> non-ANSI C

lsalomo lsalomo at hubcap.clemson.edu
Sun Dec 2 11:17:25 AEST 1990


>From article <12000 at hubcap.clemson.edu>, by lsalomo at 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 at hubcap.clemson.edu
ibmman at clemson.clemson.edu
=============================================================================
"Gee Wally, I think there's something wrong with the Beaver."
=============================================================================



More information about the Comp.lang.c mailing list