esa@discuss.tchncs.de to Programming@programming.devEnglish · 19 days agoParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comexternal-linkmessage-square14fedilinkarrow-up126arrow-down10
arrow-up126arrow-down1external-linkParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comesa@discuss.tchncs.de to Programming@programming.devEnglish · 19 days agomessage-square14fedilink
minus-squarebitcrafter@programming.devlinkfedilinkarrow-up1·16 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.