C syntax

mann%Shasta at su-score mann%Shasta at su-score
Thu Aug 25 15:44:00 AEST 1983


From:  Tim Mann <mann%Shasta at su-score>

The proper syntax for a typedef that defines a type "pointer to
function returning void" would be

	typedef void (*P_ADDR)();

The next trick is to figure out how to declare a static array of these
pointers, WITHOUT using the above typedef.  That one had me tearing my
hair until I gave up and used the typedef.

    --Tim



More information about the Comp.unix.wizards mailing list