c types problem

Joseph S. D. Yao jsdy at hadron.UUCP
Tue Jan 7 00:36:02 AEST 1986


In article <168 at hadron.UUCP> jsdy at hadron.UUCP (Joseph S. D. Yao) writes:
>In article <870 at kuling.UUCP> gostas at 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 at seismo.{CSS.GOV,ARPA,UUCP}



More information about the Comp.lang.c mailing list