typedefs and prototypes

Karl Heuer karl at haddock.ima.isc.com
Sat Sep 24 05:48:48 AEST 1988


In article <13664 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>Note that you cannot use a typedef to define a function type: i.e.,
>`typedef func_arg_int_ret_int int(int);' is illegal.

On the contrary, it *is* legal, and is even used as an example in the dpANS.
However, such a defined type can only be used to declare a function, not to
define one.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list