5 ms·
You can do this with bit field structs in C: http://www.cs.cf.ac.uk/Dave/C/node13.html http://www.cs.cf.ac.uk/Dave/C/node13.html Super handy when you're dealin
by daeken 14y ago
You can do this with bit field structs in C: http://www.cs.cf.ac.uk/Dave/C/node13.html http://www.cs.cf.ac.uk/Dave/C/node13.html
Super handy when you're dealing with oddly packed int representations and such.
- huhtenberg 14y agoYou would think so, but - No, there are no bitfield arrays. You can't have - struct octet { int bit:1 [8]; }; which is what the OP is asking for.