Path: utzoo!attcan!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: recursive typedefs Message-ID: <10887@steinmetz.ge.com> Date: 18 May 88 18:42:28 GMT References: <8805180221.AA15564@jade.berkeley.edu> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 14 You get into problems with typedefs when you try to modify them, such as using unsigned, but you should be able to use them recursively... I hope dpANS doesn't invalidate something like: typedef int *pi; /* pointer to int */ typedef pi frpi(); /* function returning ptr to int*/ typedef frpi *pfrpi; /* ptr to func ret ptr int */ This is useful to people who don't instantly think of typedef int *(*fprpi)(); as the obvious way to do this. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me