Union type conversions

Henry Spencer henry at utzoo.uucp
Fri Jun 17 04:21:58 AEST 1988


> So what it boils down to, is whether casting into a union type is
> legal and portable...

No.  You have to use the temporary union variable and assign to one of
its members, as in your second example.
-- 
Man is the best computer we can      |  Henry Spencer @ U of Toronto Zoology
put aboard a spacecraft. --Von Braun | {ihnp4,decvax,uunet!mnetor}!utzoo!henry



More information about the Comp.lang.c mailing list