Path: utzoo!attcan!uunet!husc6!bloom-beacon!spdcc!ima!haddock!karl
From: karl@haddock.ima.isc.com (Karl Heuer)
Newsgroups: comp.lang.c
Subject: Re: typedefs and prototypes
Message-ID: <8034@haddock.ima.isc.com>
Date: 23 Sep 88 19:48:48 GMT
References: <7135@bloom-beacon.MIT.EDU> <8543@smoke.ARPA> <13664@mimsy.UUCP>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Boston
Lines: 9

In article <13664@mimsy.UUCP> chris@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@haddock.isc.com), The Walking Lint