@cm0002@lemmy.world to Programmer Humor@programming.dev • 23 hours agoTell me the truth ...piefed.jeena.netimagemessage-square91fedilinkarrow-up1892
arrow-up1892imageTell me the truth ...piefed.jeena.net@cm0002@lemmy.world to Programmer Humor@programming.dev • 23 hours agomessage-square91fedilink
minus-square@xthexder@l.sw0.comlinkfedilink34•edit-221 hours agoOr just std::bitset<8> for C++. Bit fields are neat though, it can store weird stuff like a 3 bit integer, packed next to booleans
minus-squareSonotsugipaalinkfedilinkEnglish8•edit-221 hours agoThat’s only for C++, as far as I can tell that struct is valid C
Or just
std::bitset<8>
for C++. Bit fields are neat though, it can store weird stuff like a 3 bit integer, packed next to booleansThat’s only for C++, as far as I can tell that struct is valid C