Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP Path: utzoo!linus!decvax!decwrl!pyramid!ut-sally!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.lang.c Subject: Re: c types problem Message-ID: <175@hadron.UUCP> Date: Mon, 6-Jan-86 09:36:02 EST Article-I.D.: hadron.175 Posted: Mon Jan 6 09:36:02 1986 Date-Received: Wed, 8-Jan-86 20:12:56 EST References: <870@kuling.UUCP> <168@hadron.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 16 Summary: Is this for inputs or outputs? In article <168@hadron.UUCP> jsdy@hadron.UUCP (Joseph S. D. Yao) writes: >In article <870@kuling.UUCP> gostas@kuling.UUCP (G|sta Simil{/ml) writes: >>The formal (but ugly) way to solve this would proparbly be to use a union >>for all (about 10) types. But now I wonder if anyone have a simpler but >>resonably portable solution? > ... My original answer dealt with a union of outputs. Re-reading the message, it seems that you are talking about a union of inputs. Oh, well, the principle remains the same. I hope that you are relying on a state variable somewhere (even if it i s extern) to tell you what type the data is, rather than trusting the contents to let you know. -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}