binary constants (??)

Peter da Silva peter at ficc.uu.net
Tue Nov 21 10:46:30 AEST 1989


For most cases binary constants are just fine in HEX. But for image data
it's a real pain. I'd really love to be able to do this:

struct sprite smileyface = {
	0, 0, 32, 11,
	{ 0b0000000000000000,
	  0b0000111111110000,
	  0b0011000000001100,
	  0b0100011001100010,
	  0b0100000000000010,
	  0b0101110000111010,
	  0b0100100000010010,
	  0b0100011111100010,
	  0b0011000000001100,
	  0b0000111111110000,
	  0b0000000000000000
	}
};
-- 
`-_-' Peter da Silva <peter at ficc.uu.net> <peter at sugar.lonestar.org>.
 'U`  --------------  +1 713 274 5180.
"ERROR:  trust not in UUCP routing tables"
	-- MAILER-DAEMON at mcsun.EU.net



More information about the Comp.lang.c mailing list