News for hackers. Stuff that matters.
Re:Considering C99 for Curl by masklinn on Tuesday November 22, 2022 @01:02PM (#33708742)
For the average protocol you're going to init the entire message then set into it, you don't need to fully zero fields.

This is mostly relevant to write into existing memory or memory-mapped records.

Re:Considering C99 for Curl by tjoff on Tuesday November 22, 2022 @01:08PM (#33708804)
Sometimes yes, but you must also not null-terminate the strings in those cases.

And on embedded devices you are often memory constrained so you might reuse an existing structure.