|
|
|
|
|
by foobiekr
3038 days ago
|
|
Really depends on whether they know that all fields will be written before return or not. This way hey are calling malloc() is very common in professional code bases and a safety measure; I’m surprised the author was surprised. |
|
I am not used to that style so it seems odd to me, but I suppose if it was common in a codebase one would get used to it.