@cm0002@lemmy.world to Programmer Humor@programming.dev • 1 month agoTell me the truth ...piefed.jeena.netimagemessage-square169arrow-up11.18K
arrow-up11.18KimageTell me the truth ...piefed.jeena.net@cm0002@lemmy.world to Programmer Humor@programming.dev • 1 month agomessage-square169
minus-square@xthexder@l.sw0.comlinkfedilink41•edit-21 month 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-21 month 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