esa@discuss.tchncs.de to Programming@programming.devEnglish · 11 months agoParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comexternal-linkmessage-square14linkfedilinkarrow-up126arrow-down10cross-posted to: hackernews@lemmy.bestiver.se
arrow-up126arrow-down1external-linkParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comesa@discuss.tchncs.de to Programming@programming.devEnglish · 11 months agomessage-square14linkfedilinkcross-posted to: hackernews@lemmy.bestiver.se
minus-squarebitcrafter@programming.devlinkfedilinkarrow-up1·11 months agoC supports passing structs around by value, so there was no need to allocate memory for it on the heap.
C supports passing
structs around by value, so there was no need to allocate memory for it on the heap.