esa@discuss.tchncs.de to Programming@programming.devEnglish · 7 days agoParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comexternal-linkmessage-square14fedilinkarrow-up145arrow-down11
arrow-up144arrow-down1external-linkParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comesa@discuss.tchncs.de to Programming@programming.devEnglish · 7 days agomessage-square14fedilink
minus-squarebitcrafter@programming.devlinkfedilinkarrow-up1·3 days agoC supports passing structs around by value, so there was no need to allocate memory for it on the heap.
C supports passing
struct
s around by value, so there was no need to allocate memory for it on the heap.