verysuchaccount@lemmy.world to Programmer HumorEnglish · 1 year agoSometimes I want to call malloc, just as a treatlemmy.worldimagemessage-square28linkfedilinkarrow-up1585arrow-down110
arrow-up1575arrow-down1imageSometimes I want to call malloc, just as a treatlemmy.worldverysuchaccount@lemmy.world to Programmer HumorEnglish · 1 year agomessage-square28linkfedilink
minus-squareowenfromcanada@lemmy.worldlinkfedilinkEnglisharrow-up4·1 year agoI’d effectively gain the advantage of dynamic allocation by using a union (or just a generic unsigned char buffer[16384] and use it twice). Mostly the same thing as a malloc.
I’d effectively gain the advantage of dynamic allocation by using a union (or just a generic
unsigned char buffer[16384]
and use it twice). Mostly the same thing as a malloc.