Lurker News

Comments (218) 56 threads

Show all comments

Showing thread 24 of 56

kahlonel1 reply#
That's a great example of how to write C in 2025. Congrats and well done.
lelanthran#
> That's a great example of how to write C in 2025. Congrats and well done.

This project is an awful example of how to write C. No checking of return values, leaking memory with realloc, over-engineered parsing (what should be 8 lines is +200).
I can understand it as a learning project, and even if it wasn't, I can sorta understand that sometimes bugs creep in ("oops, forgot to use a tmp variable for realloc in one out of 10 places") but this is not what is happening: This is not how you write C!