@cm0002@lemmy.world to Programmer Humor@programming.dev • 8 months agoTell me the truth ...piefed.jeena.netimagemessage-square168fedilinkarrow-up11.19Karrow-down117
arrow-up11.17Karrow-down1imageTell me the truth ...piefed.jeena.net@cm0002@lemmy.world to Programmer Humor@programming.dev • 8 months agomessage-square168fedilink
minus-square@xthexder@l.sw0.comlinkfedilink41•edit-28 months 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-28 months 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