Standard for union initialization?
    MLY.G.SHADES%MIT-OZ at MIT-MC.ARPA 
    MLY.G.SHADES%MIT-OZ at MIT-MC.ARPA
       
    Wed Jan 23 17:05:44 AEST 1985
    
    
  
in response to Dick Grune's <dick at tjalk.uucp> message on union init
it seems rather messy to me as the number of commas must be precise.
for example:
	union
	{
		char	ec;
		int	i;
		float	sreal;
		char	*str;
	} ini_union = { ,3.14 }
	here you would want to init the float but the int would be
inited instead with 3 under some compiler without warning.
                          shades at mit-oz.arpa
p.s. and what about commented in/out variables?
    
    
More information about the Comp.lang.c
mailing list