@cm0002@lemmy.world to Programmer Humor@programming.dev • 5 days agoTell me the truth ...piefed.jeena.netimagemessage-square146fedilinkarrow-up11.17Karrow-down117
arrow-up11.16Karrow-down1imageTell me the truth ...piefed.jeena.net@cm0002@lemmy.world to Programmer Humor@programming.dev • 5 days agomessage-square146fedilink
minus-square@xthexder@l.sw0.comlinkfedilink41•edit-25 days 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-squareSonotsugipaalinkfedilinkEnglish10•edit-25 days 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