3 ms·
A reference-grade C "Hello World" project
- synalice 9mo agoA (deliberately) over-engineered, reference-grade C "Hello World" project that aims to follow most modern best practices. I feel like this could be a pretty good template for many new C projects in 2026. Some choices are intentionally opinionated, and I'd be interested in hearing where people disagree.
- forgotpwd16 9mo agoEvery language/framework should had something like that. Yes, cookiecutter exists but it's much nicer having a pre-ready base that can just `git clone` and start hacking.
- Someone 9mo ago- You may want to look at https://www.gnu.org/software/hello/ https://www.gnu.org/software/hello/ for inspiration. One thing it does that this doesn’t is internationalization. - if you’re going to check for errors, you should not discard errno if fputs fails